Click on coordinates using WinAppDriver

107 views Asked by At

I have a windows application and I have to test it on a remote machine using WinAppDriver and Appium.

during the test I need to click on a specific point of the screen. I have tried several ways but it doesn't work .

Is there anyway so I can do this?!

1

There are 1 answers

0
G. Victor On

Try next code using IWebElement extension. It is working locally.

public static IWebElement ClickByPoints(this IWebElement element, Point point)
{
    new Actions(((IWrapsDriver)element).WrappedDriver).MoveToElement(element, 0, 0).MoveByOffset(point.X, point.Y).Click()
        .Perform();
}