Testing elements with dynamic id

View: New views
2 Messages — Rating Filter:   Alert me  

Testing elements with dynamic id

by annymmor :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I am trying to make a test for a web page with dynamic parameters based on GWT application.
Above I describe what happens
So what I am trying to do is to record a page and than play it again.
The page has every time another xpath.It has also 4 elements with the same name->"Go to".
If I select a "go to" link, and after finish recording I play the test.The element which I click on during the test doesn't exist on the page becuase it has a different ID.
That's all!
How can I test with SELENIUM a page with dynamic values for elements?
Thanks,
Romina

Re: Testing elements with dynamic id

by kjaladi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Please check this out - http://seleniumhq.org/docs/06_test_design_considerations.html

this has some good information on how to identify dynamic objects on web pages.

thanks.