Winappdriver: Double click option is not available in Winappdriver

Created on 19 Dec 2016  路  4Comments  路  Source: microsoft/WinAppDriver

In my application I have a scenario where i need to double click on an element to open a feature. But double click option is not available in Winappdriver. Please enhance winappdriver with double click option .

We have double click option in Selenium Webdriver. Need a similar option in Winappdriver also

Thanks

Most helpful comment

Hi @viji-123,

Windows Application Driver supports mouse double click as specified in the JSON Wire Protocol. Unfortunately we don't have a sample or test for it yet. If you are writing your test in C# using Appium .NET driver, you can use the following sample code snippet to perform mouse double click on an element:

var title = calculatorSession.FindElementByAccessibilityId("AppNameTitle");
calculatorSession.Mouse.MouseMove(title.Coordinates);
calculatorSession.Mouse.DoubleClick(null);

All 4 comments

Hi @viji-123,

Windows Application Driver supports mouse double click as specified in the JSON Wire Protocol. Unfortunately we don't have a sample or test for it yet. If you are writing your test in C# using Appium .NET driver, you can use the following sample code snippet to perform mouse double click on an element:

var title = calculatorSession.FindElementByAccessibilityId("AppNameTitle");
calculatorSession.Mouse.MouseMove(title.Coordinates);
calculatorSession.Mouse.DoubleClick(null);

@timotiusmargo

Thanks for letting me know. I will try to implement that !

There is no coordinates for widows element.

var title = calculatorSession.FindElementByAccessibilityId("AppNameTitle");

calculatorSession.Mouse.MouseMove(title.Coordinates);

can you please let me know,how to achieve this

please post new questions as new issues, thanks.

Was this page helpful?
0 / 5 - 0 ratings