public void ScrollingToSubElement() { driver.FindElementByAccessibilityId("Views").Click(); AndroidElement list = driver.FindElement(By.Id("android:id/list")); var locator = new ByAndroidUIAutomator("new UiScrollable(new UiSelector()).scrollIntoView(" + "new UiSelector().text(\"Radio Group\"));"); AppiumWebElement radioGroup = list.FindElement(locator); Assert.NotNull(radioGroup.Location); }
public static bool IsElementVisible(IWebDriver driver, By Locator, AndroidElement baseElement) { try { return(baseElement.FindElement(Locator).Displayed); } catch { return(false); } }