using an expression like (//div[@class='nav']//a)[5]
to retrieve a specific element with Selenium (triggered through phpunit) never suceeds for some reason.
The Xpath is valid, using other Xpath expressions works fine, but once the Xpath contains brakets the Selenium server (2.0rc2) starts returning ERROR: Element (//div[@class='nav']//a)[5] not found.
even it that element is present.
Is this a limitation of the PHP-Webdriver for Selenium, is there some kind of workaround (to get the nth element within a node-set)?
Cheers