using a type expression (//div[@class='nav']//a)[5]to get a specific element with Selenium (called via phpunit), for some reason, never succeeds.
Xpath is valid, using other Xpath expressions works fine, but as soon as Xpath contains defects, the Selenium server (2.0rc2) starts to return ERROR: Element (//div[@class='nav']//a)[5] not found.even the one that is present in this element.
Is this a limitation of PHP-Webdriver for Selenium, is there any workaround (for getting the nth element in node-set)?
Greetings
pagid source
share