Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Selenium IDE unable to identifydynamic ID of web element

View previous topic View next topic Go down

Selenium IDE unable to identifydynamic ID of web element

Post by lokesh_chandra on Tue May 24, 2011 5:00 pm

Hi everyone,
I am new to this forum but found it quite helpful.I have an issue regarding Selenium IDE. I am testing a web page which has some web elements with dynamic changing properties. I was trying to click on that particular element but it says element not found. I have tried everything xpath, css , html firebug,regular expression everything but still it is giving error. I want to know when we run the script every time the web page refreshes and generates a new id for that particular element. Is there anyway that Selenium IDE can identify the target with dynamic changing properties. Even I tried record and play but once you record and playback the same script it gives an error.Please help me solve this issue. Thanks in advance.
Xpath:/html/body/table[2]/tbody/tr[1]/td[2]/center/div/table/tbody/tr[@id='null_slv_r']/td[@id='null_slv_c']/table/tbody/tr/td/form/table/tbody/tr[6]/td[2]/span[@id='span_picker7224']/a[@id='a_picker7224']/img
(Evey time the above id is changing whenever the page gets refreshed.)

lokesh_chandra

Posts : 6
Join date : 2011-05-24

Back to top Go down

Re: Selenium IDE unable to identifydynamic ID of web element

Post by freesky on Fri May 27, 2011 9:01 am

in xpath,you can use 'contains()' to locate the dynamic element.
for instance,//span[container(@id,'span')]

freesky
Amateur
Amateur

Posts : 72
Join date : 2011-04-13

Back to top Go down

Thanks for your feedback!

Post by lokesh_chandra on Fri May 27, 2011 5:59 pm

Hi freesky,
I must thank you for your feedback.Finally
it's working now and good to see so much support on this forum. Keep up
the good word. There is one request kindly reply for the questions
little bit early. Rest everything is really helpful on here.
Thanks Very Happy cheers

lokesh_chandra

Posts : 6
Join date : 2011-05-24

Back to top Go down

Re: Selenium IDE unable to identifydynamic ID of web element

Post by Priyanka on Tue May 31, 2011 4:09 pm

freesky
tnx for sharing

Priyanka
Regular Participant
Regular Participant

Posts : 27
Join date : 2010-10-04

Back to top Go down

Re: Selenium IDE unable to identifydynamic ID of web element

Post by Sponsored content Today at 11:53 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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