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

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

python - django admin: changing the way a field (w/ relationship to another model) is submitted on a form so that it can be submitted multiple times -