Selenium RC: Xpath of the link is changed when I refresh the page
Selenium RC: Xpath of the link is changed when I refresh the page, and when I run the code it shows
"Exception in thread "main" com.thoughtworks.selenium.SeleniumException: ERROR: Element //*[@id='yui-gen79'] not found".
How do I handle this error?
irl last edited by user
With dynamically generated element ids, sometimes I find that you can use
containsalong with a longer xpath locator to match the element. In the sample code provided it looks like only a single anchor element has an id attribute that contains the text "yui-gen" so I would suggest trying