Hi Everyone,
Am currently using Appium to Automate test scripts in Android real device. Actually, our device screen can be viewed from the url when the appium test is running. so, I would like to see the area of touches in the real device, for ex, when appium script tap the button, i need to view the area of touches. so it would helpful for the person who is viewing to know which area of the application is interacted by appium
In developer options, show touches option is enabled. however, when appium script is interacting with mobile device, this touch area are not shown.
TestScrips
- I used java script executeScript method to click on specific co-ordinates - No touch areas is hihglighted
((JavascriptExecutor) driver).executeScript(“mobile: tap”,
new HashMap<String, Double>() {
{
put(“tapCount”, (double) 1);
put(“touchCount”, (double) 1);
put(“duration”, 0.5);
put(“x”,12.25);
put(“y”, 45.77);
}
});
- Used Appium tap function
" appiumDriver.tap(1, 34, 564, 1);
"` but touch area is not highlighted.
Is there any way to achieve using appium/java?
Thanks