I am generating junit test code from selenium IDE. When I am executing selenium code in eclipse , I'm getting the following error: com.thoughtworks.selenium.SeleniumException: ERROR: Element //div/span/a not found at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97) As 'a' tag is having dynamic ID,i generate //div/span/a using cirebug inspect elment and then copying the xpath. After running the code am getting error as its not found...Please help me am stuck at this for last two days. thanks in advance Reshmi |
thanks in advance
Reshmi
XPath: //button[starts-with(@id, 'continue-')]
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/ek87M_Vh0NIJ.--
thanks in advance
Reshmi
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/VNV6yuceVAcJ.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/8Lmeno9wTP0J.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/C6JJ6TpmygQJ.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/_loxEcPm2iMJ.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/gdb13wpZTbkJ.
Have you checked to see if the website is W3C compliant html?
If it’s not there is a good chance that the XPath won’t be found due to a missing closing tag or something similar.
Try running the page through this:
If it fails validation get the HTML fixed and then try to automate it again.