I am trying to click on "create account" for gmail using xpath.
<span id="link-signup">
<a href="https://accounts.google.com/SignUp?service=mail&continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&ltmpl=default">
Create account
</a>
</span>
My code in python:
elem=driver.find_element_by_xpath("//*[@span='link-signup']").click()
I'm not sure what the error is. I know how to click the link by id but I want to learn how to do it by the xpath for future purposes.