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
Pilot_Riaz
Regular Participant
Regular Participant
Posts : 27
Join date : 2011-08-24

My Xpath won't click the button on webpage Empty My Xpath won't click the button on webpage

Tue Oct 23, 2012 6:12 pm
Hi,

I am having trouble working out the Xpath to click a button on a web page.
I have tried the following:
selenium.Click("name=ctl00$uxFormTemplate$uxNavigationControl$ctl01");
selenium.Click("id=ctl00_uxFormTemplate_uxNavigationControl");
selenium.Click("xpath=//html/body/form/div[2]/div/div[1]/div/div[2]/div[7]/input");
selenium.Click(xpath=//div[@id=ctl00_uxFormTemplate_uxNavigationControl");

It won't click the button when i run it using Nunit. It fails to click.

When i inspect the button the code snippet is as follows:







Anyone know what the correct Xpath is?

Riaz
avatar
rosco
Active particpant
Active particpant
Posts : 20
Join date : 2012-04-05

My Xpath won't click the button on webpage Empty Re: My Xpath won't click the button on webpage

Wed Oct 24, 2012 2:23 pm
Hello,
you can use xpath checker to help you
Back to top
Permissions in this forum:
You cannot reply to topics in this forum