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
mrentz
Posts : 1
Join date : 2010-12-12

Determining a users dynamic id Empty Determining a users dynamic id

Sun Dec 12, 2010 9:48 am
Hi all

I've read quite a few forum topics and I have always managed to stumble across something that will get my problem solved.
But this time I'm going to register and sign in and write up a query.

I'm a bit of a newbie and to testing in general, so you can imagine how relieved I was to come across Selenium.

I am testing a production app with the production database.
I create a new user and I have to test links like

http://springfield.staging.learning.com/su/6795
http://springfield.staging.com/admins/6795
http://springfield.staging.learning.com/admins/6795/edit
http://springfield.staging.elearning.com/admins/6795/etc...

these are all paths from href links stored in a table.

the actual html source looks like:

Your RTO
Edit
Admin B
Assume


After the test I have to delete the user

Obviously, every time I run the test I'm going to get a different number and it will have a different table row number.
At this stage the tests I have recorded using Selenium IDE are useless the moment the user it creates is on a different row to the one that I made when I recorded the initial test.

Surely a tool as powerful as Selenium can manage this... I have looked at "storeAttribute" but I can't see how to use it anywhere. Or even if it is the appropriate construct.


I feel like I should have found an existing answer. (If so then maybe I have just been working too late ? Smile

Cheers and looking forward to my first ever reply from a forum post (Query, that is).
Back to top
Permissions in this forum:
You cannot reply to topics in this forum