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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -