Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

selenium.click("id=xxx"); not working Empty 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
include85
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 38
Location : Italia, Sicily

selenium.click("id=xxx"); not working Empty 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");
avatar
Bhuvaneswari
Regular Participant
Regular Participant
Posts : 30
Join date : 2011-09-30
Location : India

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

Mon Oct 03, 2011 4:18 pm
Have tried that also, but not working for me... Sad Sad
avatar
Bhuvaneswari
Regular Participant
Regular Participant
Posts : 30
Join date : 2011-09-30
Location : India

selenium.click("id=xxx"); not working Empty 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 Cool
avatar
srilathap
Active particpant
Active particpant
Posts : 18
Join date : 2011-10-11

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

Tue Oct 11, 2011 6:16 pm
Hi,

Is it link or button?

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

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

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

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

selenium.click("id=xxx"); not working Empty 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
include85
include85
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-09-22
Age : 38
Location : Italia, Sicily

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

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

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

selenium.click("id=xxx"); not working Empty 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
avatar
santoshsarma
Posts : 2
Join date : 2011-10-19

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

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