The problem
I am working o automate an android app which have some screen of webview too. I am unable to click the right element through xpath, class, with index or even with giving name text.
if you see these screenshots it is visible that when i inspect element i get link to somewhere else. i tried using getlocation and then pass it for click but it also getting me wrong click.
i tried touchaction class methods but they are not working. My code get pass through appium but the methods tap or press nothing.
tried this way too WebElement Quiz1 = (new WebDriverWait(driver , 20))
.until(ExpectedConditions.presenceOfElementLocated(By.xpath("//android.view.View[contains(@content-desc,'Die Wish App')]")));
Quiz1.click();
but no luck.
Any help would be appreciated. Also how can i use webview rather than webelement? and which one is preferable?