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.click("id=xxx"); not working

View previous topic View next topic Go down

selenium.click("id=xxx"); not working

Post by Bhuvaneswari on Fri Sep 30, 2011 6:32 pm

I am new to Selenium.
Recorded the my app flow using Selenium IDE and converted the script to JUnit 4 RC. Ran the java file in Eclipse IDE. Able to launch my web page and pass the credentials. But when it comes to clicking any buttons (Add exception button, Login button) in this flow, it fails to do.

To cross verify I played back the script where I can click the button but not after converting to java.

selenium.click("id=LP_loginSubmit"); is the line where it fails.

Before getting into this large forum, looking for a quick help and hence posting this.
Any help is greatly appreciated.

Reg.,
Bhuvana

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by include85 on Fri Sep 30, 2011 7:57 pm

Hi.
You can try at delete id=

so:
selenium.click("xxx");

include85
Regular Participant
Regular Participant

Posts : 27
Join date : 2011-09-22
Age : 31
Location : Italia, Sicily

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by Bhuvaneswari on Mon Oct 03, 2011 4:18 pm

Have tried that also, but not working for me... Sad Sad

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by Bhuvaneswari on Mon Oct 03, 2011 5:13 pm

Yeah ! it is the issue with browser version.

Tried in iexplore-8 and got it working Cool

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by srilathap on Tue Oct 11, 2011 6:16 pm

Hi,

Is it link or button?

tell me

srilathap
Active particpant
Active particpant

Posts : 18
Join date : 2011-10-11

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by Bhuvaneswari on Wed Oct 12, 2011 12:20 pm

It's a button

Reg.,
Bhuvana

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by narendra271086 on Mon Oct 17, 2011 4:02 pm

Hi,

I am also facing the same problem for text box, button etc.

Like for login functionality i am giving username and password but while playing back the test cases, selenium is not able to resolve the "name" or "id" of the text boxes in which i typed the username and password.

if i am giving below code:

selenium.click("name=User");

Its throwing error that "User" cannot be found.

I tried with

selenium.click("User");

But then also its giving me error.

Any help in this regard is greatly appreciated.

Thanks,

Narendra kaushik

narendra271086

Posts : 1
Join date : 2011-10-17

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by include85 on Tue Oct 18, 2011 4:39 pm

Exists "User"?

You can try with XPATH for get user;)

include85
Regular Participant
Regular Participant

Posts : 27
Join date : 2011-09-22
Age : 31
Location : Italia, Sicily

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by Bhuvaneswari on Wed Oct 19, 2011 12:21 pm

Not sure but can you try this way,

selenium.type("id=dijit_form_TextBox_0", "admin");

Reg.,
Bhuvana

Bhuvaneswari
Regular Participant
Regular Participant

Posts : 30
Join date : 2011-09-30
Location : India

Back to top Go down

Re: selenium.click("id=xxx"); not working

Post by santoshsarma on Wed Oct 19, 2011 8:27 pm

try with this Xpath

"//input[@id='XXXXXXXXX']"


example: selenium.click("//input[@id='XXXXXXXXX']"); or

selenium.type("//input[@id='XXXXXXXXX']","your content here");


santoshsarma

Posts : 2
Join date : 2011-10-19

Back to top Go down

Re: selenium.click("id=xxx"); not working

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