Below is the html which is having a “upload a resume” button on a website. I logged in to this website but now wanted to upload a resume using python selenium.
<a href="/resumes/new">upload a resume</a>
Below is the code I tried for clicking the upload a resume button. But it is throwing an error
NoSuchElementException: Message: Unable to locate element: //a[@href="/resumes/new"]
Attach_resume = browser.find_element_by_xpath('//a[@href="/resumes/new"]')
Is there anything that I am missing? I want to click that button and I want to upload a file to it. Please help me out.