Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
sreenath
Posts : 3
Join date : 2011-04-26

How to handle the dynamic ids in selenium IDE Empty How to handle the dynamic ids in selenium IDE

Tue Apr 26, 2011 10:14 pm
Hi All,

I have recently started with selenium IDE for smoke test porpose.

I had a serious problem due to environment change in application. For example....

Previously my code like - viewPC_7_EMCVDGL10023E023O5G5711OM2_:newbatch:bdate

Current code is - viewns_7_EMCVDGL10023E023O5G5711OM2_:newbatch:bdate

Can anyone please suggest me...

Regards,
Sreenath
9916994123
avatar
Lavanya_K
Posts : 7
Join date : 2011-04-20

How to handle the dynamic ids in selenium IDE Empty Re: How to handle the dynamic ids in selenium IDE

Sat May 07, 2011 6:31 pm
Hi Sreenath,

you can try using xpath . In that you can use starts-with , contains, ends-with depending on the situation.

In your example above, the starting point is varying... viewPC and then viewns

so you have to use contains

in the target box
//div[contains(@id,'_EMCVDGL10023E023O5G5711OM2')]

Let me know if it works.

Thanks,
Lavanya.
selenium.testing07
selenium.testing07
Regular Participant
Regular Participant
Posts : 26
Join date : 2010-11-20

How to handle the dynamic ids in selenium IDE Empty Re: How to handle the dynamic ids in selenium IDE

Tue May 10, 2011 6:16 pm
Sreenath,

You have to use some path locator like Xpath etc.
and find out something static or you can also use particular place like
Table row column etc, and store the value in a variable.

Hope this logic will work

Cheers,
avatar
sreenath
Posts : 3
Join date : 2011-04-26

How to handle the dynamic ids in selenium IDE Empty Re: How to handle the dynamic ids in selenium IDE

Wed May 11, 2011 6:00 pm
Thanks for the update Lavanya...

Regards,
Sreenath
avatar
sreenath
Posts : 3
Join date : 2011-04-26

How to handle the dynamic ids in selenium IDE Empty Re: How to handle the dynamic ids in selenium IDE

Wed May 11, 2011 6:01 pm
Thanks for the update.


Regards,
Sreenath
Sponsored content

How to handle the dynamic ids in selenium IDE Empty Re: How to handle the dynamic ids in selenium IDE

Back to top
Permissions in this forum:
You cannot reply to topics in this forum