0

<button id="upload-resume" type="button" class="btn btn-primary btn-lg btn-block ng-binding" ng-show="canUpload()" ng-click="submit()" ng-disabled="submitButtonDisabled" tabindex="0" aria-hidden="false" aria-disabled="false">Continue</button>

how to click on this button using selenium python

2
  • 3
    Possible duplicate of python selenium click on button Commented Apr 23, 2018 at 16:46
  • button = browser.find_element_by_id('upload-resume') button.click() Commented Apr 23, 2018 at 16:49

1 Answer 1

1

try this code :

upload_button = driver.find_element_by_id("upload-resume")
upload_button.click()  

If you wanna use Xpath , then you can use this code:

 upload_button = driver.find_element_by_xpath("//input[text()='Continue']")  
 upload_button.click()
Sign up to request clarification or add additional context in comments.

20 Comments

Thanks but its got an error unable to locate element
Could you search for the locators? is id static ? or it has multiple web element associate with it
Yeah ! Gimme some time!
Where is upload button ?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.