This Xpath and selector info copied from chrome elements inspector:
<button class="btn btn-white btn--no-margin btn--full-width _1XvaFLD3_IpAQNG-OJU2-H _1xNlj_ScH8hEMWzrkRt1A">Sign up</button>
CssSelector:
#main > div > div.Root__top-container.Root__top-container--has-notice-bar > div.Root__nav-bar.Root__nav-bar--has-notice-bar > nav > div.navBar-signupPrompt._3nonY0buM5Z1AF4aRrP8VY > p:nth-child(1) > button
That I have tried to find with:
button = wd.find_element(By.XPATH("//button[contains(text(),'"+btn-white+"')]"))
Which returns an error as:
NameError: name 'btn' is not defined
I found this that shows me how to find by a partial name.
Any help would be appreciated.