Questions tagged [winappdriver]

Windows Application Driver is a service to support Selenium-like UI Test Automation on Windows Applications. This service supports testing Universal Windows Platform (UWP) and Classic Windows (Win32) apps on Windows 10 PCs. When using this tag, also include other tags for the specific components you are using, e.g. the programming language you're using like c#, python or java, selenium and selenium-webdriver and maybe specify the controls like xpath

Access the official GitHub with guides and samples.

286 questions
1
vote
1 answer

WinAppDriver how to define a WindowsElement in Java without getting java.lang.ClassCastException

I want to define a WindowsElement so I can reuse it , but if I run it , it throws java.lang.ClassCastException: org.openqa.selenium.remote.RemoteWebElement cannot be cast to io.appium.java_client.windows.WindowsElement I went though some…
Sameera De Silva
  • 1,722
  • 1
  • 22
  • 41
1
vote
2 answers

How to scroll the area like drop down and list box in Winapp driver with c#?

I am automating desktop application where i have list box in which many items are listed and i want to click on the item which is hidden and that item will shows after scrolling the list. Which code will work for this? I am working with…
Neh18
  • 152
  • 1
  • 12
1
vote
1 answer

Can't use findElementByName on Outlook mail when control via Appium with Java code

I am importing Appium (java-client-7.3.0.jar) and Selenium library for my project. My function: import org.junit.*; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import…
denis bui
  • 65
  • 7
1
vote
2 answers

WinAppDriver: Launching of desktop application was working fine, but of late its having issues

Launching of the desktop application was working fine when I automated using winAppDriver. Of late I observed these tests are failing. Its failing at this line, notepadsession = new WindowsDriver(new Uri("http://127.0.0.1:4723"),…
Krishna M.G.
  • 81
  • 1
  • 1
  • 7
1
vote
1 answer

WinAppDriver tests fail when screen is locked

I am using winAppDriver to test UWP app but tests fail when screen is locked as it's not able to find the element and works ok when screen is not locked. Any solution to run winAppTest even screen is locked? I am worried about how I am gonna with…
Ref
  • 27
  • 1
  • 8
1
vote
1 answer

WinAppDriver continuously throws an error as 'Unknown error, Operation timed out'

I'm trying to automate UI's of an extension installed in Visual Studio 2019 Enterprise using WinAppDriver and after all the successful completion of configurations and test scenarios, the WinAppDriver server keeps throwing an error as below. Accept:…
1
vote
3 answers

winappdriver couldn't find element using

I am new to automation and I am trying to automate the WPF application using WinAppDriver with C#. I am able to load the application but getting the error like {"An element could not be located on the page using the given search parameters."} while…
Anil
  • 21
  • 1
  • 6
1
vote
1 answer

Winapp driver : How to select items from the list using Java

I am trying to automate Windows app using Win app driver, How can we select item from the list using java? WindowsElement comboBoxElement1= (WindowsElement) DesktopSession.findElementsByXPath("//List[@Name='Select…
1
vote
4 answers

How can I catch whether the element is not visible

I'm trying to create a script where I can check if the element is or is not displayed on the UWP app. I have a methods that checks if the element is Displayed or Not Displayed.. if the element is actually displayed and I called the…
Kulin
  • 11
  • 1
  • 2
1
vote
1 answer

How to implement save function in winappdriver?

I am trying to write a java WinAppDriver program which will open Excel, then create a blank workspace, and then it should save that file with a given name. I can set the file name, but I can't save the file. Here is my code: @Test public void…
AniD
  • 21
  • 6
1
vote
1 answer

Unable to get automation id of a WPF application using Inspect.exe for WinApp Driver automation

I'm trying to automate UI of an extension (WPF) in Visual Studio 2017 using WinApp Driver but cannot find automation id when capturing elements using Inspect.exe (Windows SDK) Initially there were no automation id's found when inspected by…
hiran91
  • 31
  • 6
1
vote
2 answers

WinAppDriver doesn't find element Inspect can find

I am trying to assert a certain Text element is present on a GUI I am testing. I can see the element using Inspect, yet when running my code, the element is not found. Interestingly, I cant use the "watch cursor" to select the element, I can only…
dshimano
  • 11
  • 3
1
vote
1 answer

Outlook New Email Unable to send keys to element when running with WinAppDriver

When using WinAppDriver I'm receiving an unknown error when trying to sendkeys to the new email window. I've created a new session to interact with this new window that appears when you click New E-mail. IT looks as though the element is correct as…
Saqib
  • 23
  • 4
1
vote
0 answers

WinAppDriver - Time taken to FindElementsByName / FindElementsByAccessibilityId is more and increasing linearly with time

I use "WinAppDriver" on Windows 10 to automate button click using "Appium.WebDriver" NuGet package. To find an element by it's "Id" or "Name", it takes more time (around 5 seconds initially) and the problem gets worse when WinAppDriver runs…
Pradeep
  • 13
  • 1
  • 8
1
vote
1 answer

How do I wait for an element using the WinAppDriver in UWP?

I'm currently migrating my Coded UI Tests for a UWP app to Appium using the WinAppDriver and I have come across the issue, that I can't wait for an element to show up. There is no way to wait for a element to be "ready" as the Coded UI Test from…
alisheikh
  • 89
  • 2
  • 10