org.openqa.selenium.InvalidSelectorException: invalid selector: Unable to locate an element with the xpath expression //a[Contains(Text(),'Forgot Password?')] because of the following error:
SyntaxError: Failed to execute 'evaluate' on 'Document': The string '//a[Contains(Text(),'Forgot Password?')]' is not a valid XPath expression.
请您参考如下方法:
您弄乱了输入的语法或表达式
//a[Contains(Text(),'Forgot Password?')]
这必须像
//a[contains(text(),'Forgot Password?')]


