selenium webdriver - unable to make xpath <button ===class="btn btn-lg btn-primary btn-block" ng-click="SignUp();" type="submit">Sign in</button> -
hi unable make xpath , want click on sign in button .
<button class="btn btn-lg btn-primary btn-block" ng-click="signup();" type="submit">sign in</button>
i using //a[@text = 'sign in']
<button class="btn btn-lg btn-primary btn-block" ng-click="signup();" type="submit">sign in</button>
your xpath should be:
//button[text() = 'sign in']
@
used attributes, example:
//button[@ng-click = 'signup();']
Comments
Post a Comment