Hi,
I am unable to get the text with name “Management Tool” present in the app, please refer the screenshot.
I tried following syntax’s but none of them worked:
//@FindBy(xpath = “//*[contains(@value=‘Management Tool’)]”) private WebElement mainTitle;
//@FindBy(how=How.XPATH,using=("//android.widget.TextView[contains(text(),‘Management Tool’)]")) private WebElement mainTitle;
//@AndroidFindBy(uiAutomator = “new UiSelector().textContains(‘Management Tool’)”) private MobileElement mainTitle;
//@FindBy(xpath = “//*[@class='android.widget.TextView][@index = ‘0’]”) private WebElement mainTitle;
Can some suggest me the correct syntax?