|
|
|
[
Permlink
| « Hide
]
Andras Hatvani - 27/Aug/08 10:52 AM
Is this issue still present when trying with the latest beta and/or nightly build?
I also have this issue on IE 7, I'm using selenium server beta 1 (have also tried the latest nightly) with C# driver.
Using an actual xpath query count() outside of selenium on //div[@id='TreeView1']/ul/li returns me 7 elements, however running this in selenium like so selenium.GetXpathCount("//div[@id='TreeView1']/ul/li") - The output is 0 But selenium will happily click one of these elements inside the tree by index eg: selenium.Click("//div[@id='AlterianTreeView1']/ul/li[5]/div/span[2]") - works absolutely fine. Please keep in mind that as long as you don't provide a reproducible test case no action can be taken.
My test was successful with the following parameters: Client driver: Java OS: OS X 10.5.5 Browser: Firefox Test: Launcher: *chrome Base URL: http://www.google.at" selenium.open("http://www.google.at"); assertEquals(selenium.getXpathCount("//div[contains(@id,'gb')]"), 2); // <- true Please execute your test with a browser other than IE and provide your launcher type, too. With the before mentioned configuration:
selenium.getXpathCount("/html/body/div[@id='gbar']/nobr/div[@id='gbi']/*") // <- correctly returns 11 I suggest trying to use the faster optional javascript-xpath library instead of google's ajaxslt as this is the library used in IE, because it has no native XPath engine, so I assume that the issue can be caused by the library. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||