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

How do i find xpath for a button on web page Empty How do i find xpath for a button on web page

Thu Apr 04, 2013 5:04 pm
Hi,
I am having trouble finding the xpath so i can click the NextButton button on the web page.
The IDE does not click this button. If i can find the xpath i can write it in my C# code and then run it in Nunit.
The code snippet is:


a id="uxNextButton" class="signup-submit-button" href="javascript:__doPostBack('ctl00$BodyContentPlaceHolder$uxNextButton','')">Next step'

I right click on the button and select View Xpath. The Xpath it gives is: id('uxNextButton')

In my C# i write selenium.Click("xpath=id('uxNextButton')");
It does not work.
Please help, what is the xpath for this NextButton?
avatar
sunny mehndiratta
Regular Participant
Regular Participant
Posts : 25
Join date : 2013-03-22

How do i find xpath for a button on web page Empty Re: How do i find xpath for a button on web page

Fri Apr 12, 2013 5:24 pm
if i m not wrong u can use firebug,,if u are aware about it then well n good , otherwise for ur information this is a mozilla extension... u can install it through seleniumhq.org site...

after installing it u can right click on the web element then find the option

INSPECT ELEMENT WITH FIREBUG

then it ll give u the selected code there u can right click n copy the xpath
Back to top
Permissions in this forum:
You cannot reply to topics in this forum