Is it working with selenium IDE? or in code like driver.findElement(By.xpath("loc"))? If yes then it should work with FindBy as well.
Another observation is, you are missing to provide locator strategy while providing locator string. for example:
instead of
@FindBy(locator = "locator-value")
it should be
@FindBy(locator = "strategy=locator-value")
in your case you need to use xpath as strategy
@FindBy(locator = "xpath=(//h2/span[contains(text(),'Pending Transactions')]/following::div/p)[1]")
गुरुवार, 29 नवंबर 2018 को 5:38:22 पूर्व UTC-8 को, Praveen Kumar ने लिखा: