Category : android-uiautomator

Normally there is a toolbar in uiautomatorviewer that contains call-to-action icons like taking screenshots, saving screenshots etc. Somehow that toolbar is missing in my uiautomatorviewer. I am opening it for the first time after installing Android/SDK on macOS, so as it is, I can’t capture screenshots from a connected mobile device. This is what I ..

Read more

I need to scroll from bottom to top until certain text is found, but I cannot understand how to achieve this. I read in the official documentation but so such thing is specified. Am I missing something? Docs Something like this: MobileElement element = (MobileElement) driver.findElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector()" + ".scrollIntoViewBackwards(new UiSelector().text("" + country + ..

Read more

I want to UI Automation test for creating PDF File but below error shown. It can’t find the storage path to can save file androidx.test.espresso.PerformException: Error performing ‘single click – At Coordinates: 358, 1078 and precision: 16, 16’ on view ‘with id is com.example.firsttest:id/CreatePDF’. It works when run code as an app, but when run ..

Read more

I am performing uitesting in android by using android uiautomator. I want to perform click on x,y coordinate of screen.I had been searching and found uiautomator provides method mDevice.onClick(x,y) to perform click on screen with respect of coordinated. mDevice.onClick(x,y) returning true but nothing happening on screen. i don’t know what i am doing wrong. I ..

Read more

I’m trying to get the return value of UiScrollable from the following code: Driver.FindElement(MobileBy.AndroidUIAutomator( "new UiScrollable(new UiSelector().scrollable(true).resourceId("genericID")).setAsVerticalList().scrollTextIntoView("" + cellText + "");" )); Based on https://developer.android.com/reference/androidx/test/uiautomator/UiScrollable#scrolltextintoview It says that: "Returns boolean, true if item is found; else, false" Any ideas? Source: Android..

Read more