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

unable to capture onChange event handler

View previous topic View next topic Go down

unable to capture onChange event handler

Post by popsha on Wed Jun 06, 2012 10:21 am

could not handle a drop down box, which has' onchange' event handler

selecting a text from drop down will show a link otherwise not.
running the script, selects drop down and the link is shown but could not clink on the link as the script breaks

can anyone help me out.my code snippet is below:

selenium.select("name=product", "label=Aero");
selenium.fireEvent("name=product", "change");
Thread.sleep(3000);
selenium.click("//tr[6]/td[2]/a");

popsha
Amateur
Amateur

Posts : 60
Join date : 2012-04-14

Back to top Go down

Re: unable to capture onChange event handler

Post by Love Sharma on Wed Jun 06, 2012 10:38 am

Hi,
1. If I understood you correctly then you are able to select the desired option from drop down and hence the link is visible
2. You trying to click on the link by using selenium.click("//tr[6]/td[2]/a"); 3. The script could not reach this code statement because it get failed before reaching this line itself or while reading this statement?

Love Sharma
Regular Participant
Regular Participant

Posts : 27
Join date : 2012-06-01

Back to top Go down

Re: unable to capture onChange event handler

Post by popsha on Wed Jun 06, 2012 10:53 am

yes, can you suggest a soluition

popsha
Amateur
Amateur

Posts : 60
Join date : 2012-04-14

Back to top Go down

Re: unable to capture onChange event handler

Post by Love Sharma on Wed Jun 06, 2012 12:22 pm

well if the script is unable to click the link then either xpath is not correct or you need to increase timer. Per my understandings, link is appearing only after selection of dropdown and hence could be the reason that it is not visible when system try to click it.

If this is not the case then please provide more info about error and confirm if the issue arises with this statement only(selenium.click("//tr[6]/td[2]/a");?

Love Sharma
Regular Participant
Regular Participant

Posts : 27
Join date : 2012-06-01

Back to top Go down

Re: unable to capture onChange event handler

Post by Sponsored content Today at 3:23 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