Share
Go down
Bhuvaneswari
Regular Participant
Regular Participant
Posts : 30
Join date : 2011-09-30
Location : India

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

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
avatar
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 32
Location : Italia, Sicily

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

on Fri Sep 30, 2011 7:57 pm
Hi.
You can try at delete id=

so:
selenium.click("xxx");
Bhuvaneswari
Regular Participant
Regular Participant
Posts : 30
Join date : 2011-09-30
Location : India

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

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

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

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
srilathap
Active particpant
Active particpant
Posts : 18
Join date : 2011-10-11

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

on Tue Oct 11, 2011 6:16 pm
Hi,

Is it link or button?

tell me
Bhuvaneswari
Regular Participant
Regular Participant
Posts : 30
Join date : 2011-09-30
Location : India

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

on Wed Oct 12, 2011 12:20 pm
It's a button

Reg.,
Bhuvana
narendra271086
Posts : 1
Join date : 2011-10-17

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

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
avatar
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 32
Location : Italia, Sicily

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

on Tue Oct 18, 2011 4:39 pm
Exists "User"?

You can try with XPATH for get user;)
Bhuvaneswari
Regular Participant
Regular Participant
Posts : 30
Join date : 2011-09-30
Location : India

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

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
santoshsarma
Posts : 2
Join date : 2011-10-19

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

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");

Sponsored content

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

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