@Aleksei I already checked this xpath using “android.widget.EditText”. In my case DOM is not loading, so this will not work.
Note: When I am trying to identify locator’s through Appium inspector tool, I am able to see locators for previous screen(Not for the current black screen). but If you see in the attached screenshot(Black screen, I unable to see any locators like Select a bank, search icon, cross icon etc. in the DOM)
you have tried with:
1)WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5)); wait.until(ExpectedConditions.attributeContains(driver.findElement(By.xpath("//android.widget.TextView[@text=Select a bank’’]")),“text”, “Select a bank”));
@Giuma, As you mentioned, I have already tried first two options. For Option 3, On Emulator also I am not able to click. Basically, DOM is not loading, tried with driver.getPageSource();
When I checked the DOM page source, It shows previous screen’s element. Ideally, it should display current page element’s in DOM.