Hello,
I have an application homepage and I the appium script is not able to find the element using the ID at runtime:
@FindBy(how=How.XPATH,using=("//android.widget.TextView[@text=‘FamilyProfile’]")) WebElement Family_Profile;
I have a few observations that I would like to share:
- The argument in the text view and the text differs
- When I generate the source during runtime, I have observed that for this element is being translated as “Family
Profile”
I have also tried using
@FindBy(how=How.XPATH,using=("//android.widget.TextView[@text=‘Family
Profile’]")) WebElement Family_Profile;
and
@FindBy(how=How.XPATH,using=("//android.widget.TextView[@text=‘Family’]")) WebElement Family_Profile;
If you would please advice on the same, that would be great!