# Click at a particular coordinate on an element does not work for Windows test with Appium version 1.22 although was working with 1.19

**URL:** <https://discuss.appium.io/t/click-at-a-particular-coordinate-on-an-element-does-not-work-for-windows-test-with-appium-version-1-22-although-was-working-with-1-19/35909>\
**Category:** Issues/Bugs\
**Created:** [March 16, 2022, 8:01am UTC](https://discuss.appium.io/t/click-at-a-particular-coordinate-on-an-element-does-not-work-for-windows-test-with-appium-version-1-22-although-was-working-with-1-19/35909 "2022-03-16T08:01:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi02101987](https://discuss.appium.io/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@abhi02101987](https://discuss.appium.io/u/abhi02101987)\
**Post date:** [March 16, 2022, 8:01am UTC](https://discuss.appium.io/t/click-at-a-particular-coordinate-on-an-element-does-not-work-for-windows-test-with-appium-version-1-22-although-was-working-with-1-19/35909/1 "2022-03-16T08:01:29Z")

</div>

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
