Hi Team,
I have also faced this issue in past then i switch to Actions class of selenium and its working fine.
Please use selenium Actions class instead of Touch Action in Mobile Web only, Touch action works perfectly except Mobile web.
Hi Team,
I have also faced this issue in past then i switch to Actions class of selenium and its working fine.
Please use selenium Actions class instead of Touch Action in Mobile Web only, Touch action works perfectly except Mobile web.
@dharam1690 have you also tried the MobileActions for Native context in Android…
Specially its move to(WebElement) method…
Below c# code working fine.
For tap element you need to take the x and y location… u can find the location of the element in the corner of your uiautomatorviewer.
TouchAction touchAction1 = new TouchAction(driver);
touchAction1.Tap(97, 392);
touchAction1.Perform();
I’m trying this approach I got this
=> my code String originalContext = appiumDriver.getContext();
appiumDriver.context(“NATIVE_APP”);
// Perform TouchAction
new TouchAction(appiumDriver)
.tap(PointOption.point(673, 1526))
.release()
.perform();
=> exception : org.openqa.selenium.UnsupportedCommandException: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘SURESHGB-PC’, ip: ‘192.168.1.106’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘15’
Driver info: io.appium.java_client.AppiumDriver
=> can you guide me sir, how to resolve this