Hi,
I am trying to click on a particular coordinate on a element on Windows app using appium desktop version 1.22. I am using below code:
Actions action = new Actions(driver);
action.moveToElement(element, 30, 40).click().perform();
Here , element is the RemoteWebElement reference I got from driver using some locator.
30 is the x coordinate
40 is the y coordinate.
The code mentioned above was working till Appium 1.19 but If I try to execute the above mentioned code then it throws below error: Seems like perform() method is throwing this error.
org.openqa.selenium.InvalidArgumentException: “actions” in JSON payload is undefined or is not an Array
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘LP1-AP-51849755’, ip: ‘192.168.0.107’, os.name: ‘Windows 8.1’, os.arch: ‘amd64’, os.version: ‘6.3’, java.version: ‘1.8.0_292’
Driver info: io.appium.java_client.windows.WindowsDriver
Capabilities {app: C:\Windows\System32\notepad…, deviceName: WindowsPC, javascriptEnabled: true, newCommandTimeout: 1000, platform: WINDOWS, platformName: Windows}
Session ID: b0aafcf1-9ef4-4276-818f-61e72cc34ef2
I am also observing the same error while doing double click by using below code:
Actions action = new Actions(driver);
action.doubleClick(element).perform();
Here , element is the RemoteWebElement reference I got from driver using some locator.
Please suggest what to do here. I would appreciate any help in this regard.
Thanks in advance