How to write test for dynamic ID field

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to write test for dynamic ID field

Grzester
Hello

Can someone tell me how to record simple test which puts text for field with dynamic ID:

id=XXX_links_attributes_1333619109363_url
id=XXX_links_attributes_1333620139415_url
id=XXX_links_attributes_1333619109363_url

When I try start recorded test there is always displayed following error:

[error] Element id=XXX_links_attributes_1333619109363_url not found
[error] Element id=XXX_links_attributes_1333620139415_url not found
[error] Element id=XXX_links_attributes_1333619109363_url not found

due to fact that ID for this field is different after each page refresh.

thx
/Grzester