- BhuvaneswariRegular Participant
- Posts : 30
Join date : 2011-09-30
Location : India
selenium.click("id=xxx"); not working
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
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
- include85Regular Participant
- Posts : 27
Join date : 2011-09-22
Age : 39
Location : Italia, Sicily
Re: selenium.click("id=xxx"); not working
Fri Sep 30, 2011 7:57 pm
Hi.
You can try at delete id=
so:
selenium.click("xxx");
You can try at delete id=
so:
selenium.click("xxx");
- BhuvaneswariRegular Participant
- Posts : 30
Join date : 2011-09-30
Location : India
Re: selenium.click("id=xxx"); not working
Mon Oct 03, 2011 4:18 pm
Have tried that also, but not working for me...
- BhuvaneswariRegular Participant
- Posts : 30
Join date : 2011-09-30
Location : India
Re: selenium.click("id=xxx"); not working
Mon Oct 03, 2011 5:13 pm
Yeah ! it is the issue with browser version.
Tried in iexplore-8 and got it working
Tried in iexplore-8 and got it working
- srilathapActive particpant
- Posts : 18
Join date : 2011-10-11
Re: selenium.click("id=xxx"); not working
Tue Oct 11, 2011 6:16 pm
Hi,
Is it link or button?
tell me
Is it link or button?
tell me
- BhuvaneswariRegular Participant
- Posts : 30
Join date : 2011-09-30
Location : India
Re: selenium.click("id=xxx"); not working
Wed Oct 12, 2011 12:20 pm
It's a button
Reg.,
Bhuvana
Reg.,
Bhuvana
- narendra271086
- Posts : 1
Join date : 2011-10-17
Re: selenium.click("id=xxx"); not working
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
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
- include85Regular Participant
- Posts : 27
Join date : 2011-09-22
Age : 39
Location : Italia, Sicily
Re: selenium.click("id=xxx"); not working
Tue Oct 18, 2011 4:39 pm
Exists "User"?
You can try with XPATH for get user;)
You can try with XPATH for get user;)
- BhuvaneswariRegular Participant
- Posts : 30
Join date : 2011-09-30
Location : India
Re: selenium.click("id=xxx"); not working
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
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
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");
"//input[@id='XXXXXXXXX']"
example: selenium.click("//input[@id='XXXXXXXXX']"); or
selenium.type("//input[@id='XXXXXXXXX']","your content here");
Permissions in this forum:
You cannot reply to topics in this forum