I cannot find the xpath for the Login button and the Login text in the below code. Please help me.
xpath
<header id="primary-header" role="banner"> <div id="header-left-links" role="navigation"> <div id="header-middle-links"> <div id="header-right-links"> <ul> <li> <li> <a class="login header-right-label open" data-side-panel-trigger="login" href="#" aria-expanded="true"> Log In <span class="icon-account-info"/> </a> </li>
If xPath is not available just make your own
//a[@class='login header-right-label open']
Use this it surely gonna work
Syntax:
//HTMLtag[@locatorname='Locatorvalue']
This syntax is used to make xPath.
1.4m articles
1.4m replys
5 comments
57.0k users