SyntaxFix
Write A Post
Hire A Developer
Questions
@FindBy(xpath = "//span[@class='y2' and contains(text(), 'Your Text')] ") private WebElementFacade emailLinkToVerifyAccount;
This approach will work for you, hopefully.