bhupathi turaga
bhupathi turaga

Reputation: 297

how to click on this button using selenium python

<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

Upvotes: 0

Views: 172

Answers (1)

cruisepandey
cruisepandey

Reputation: 29362

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()

Upvotes: 1

Related Questions