I am writing a simple code where I needed to extract the contents of a html tag which was <span>
. I've used the xpath to do it.
Here's the error
File "C:\Users\BRS\Desktop\AccountChef\wattpad acc maker - Copy.py", line 41
emailentry = wd.findElement(By.xpath(//*[@id='email']//span)).getText();
^
SyntaxError: invalid syntax
Since it's a syntax error, I don't think I need to give whole code. Please tell what i did wrong