seleniumautomationselenium-ide

How to record the script for dynamic ID generation in Selenium


I am working on Selenium IDE. Currently I am facing problem related to dynamic id. I have recorded one script, but when I run it again it fails because id changes every time.

Is there any way to get rid of this?? Waiting for reply

thanks in advance


Solution

  • You should use other type of locators (for example xPath - as Pavel Janicek wrote).
    Here is an article about Selenium locators http://www.qaautomation.net/?p=188
    Read it and choose the best way for you.