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
0
votes
0 answers

WinAppDriver for WPF application failed creating WindowsDriver instance

I am not able to run a test for a WPF desktop application. It fails most of times when I create the Session object for the test. This is a .Net 6.0 application and it starts without admin permissions. It takes a few seconds to start, but it starts…
0
votes
0 answers

selenium tests got slow after upgrading framework to .NET6.0

selenium tests got slow after upgrading framework to .NET6.0 below is proj file net6.0-windows Library
0
votes
0 answers

Integrating WinAppDriver and Selenium

I am using both Selenium, testng and WinAppDriver with Java via Eclipse (and ultimately Jenkins) and IE (via Edge IE compatibility). I use Selenium the normal way, and when I hit a certain page (which requires a windows box login and password) I…
Tony
  • 1,127
  • 1
  • 18
  • 29
0
votes
0 answers

Click desktop app element using winApp drive

I am automating desktop application Using winApp driver similer to selenium driver. In which I am trying to click a button which don't have name,class name or any unique tag to identify. So i want to click the button where next to next tag having…
0
votes
0 answers

How to close/switch modal dialog(windows) using appium desktop

I am trying to automate testing of desktop application.However,I couldn't figure out how to close modal dialog that blocks main window. Up to now , I tried to grab object with xpath provided by WinAppDriverUIRecorder I tried to find by modal's…
0
votes
0 answers

What's wrong with this relative XPath?

I want to automate a SQL developer tool so I'm trying to click on the "create new connection" button create new connection using relative XPath. Why is WinAppDriver failing to click on the button? Output-Error using System; using SikuliSharp; using…
0
votes
0 answers

winappdriver capabilities being changed

This is referring to a previous post, WinAppDriver: Could not start a new session. Response code 400. Message: Missing command parameter: appId , where I mentioned that I start WinAppDriver and even though I specified appId as a desired capability…
Tony
  • 1,127
  • 1
  • 18
  • 29
0
votes
0 answers

WinAppDriver: Could not start a new session. Response code 400. Message: Missing command parameter: appId

IT downloaded and installed WinAppDriver for me. I built it into Selenium with a testng application I had. The dataprovider (part of) is like this: WindowsDriver app = null; try { DesiredCapabilities caps = new…
Tony
  • 1,127
  • 1
  • 18
  • 29
0
votes
0 answers

Winappdriver is crashed during UITest execution

I am testing desktop application and running UI test on CI pipeline. This error occurs randomly: TearDown : OpenQA.Selenium.WebDriverException : Unexpected error. System.Net.WebException: Unable to connect to the remote server --->…
anonymous
  • 1
  • 1
0
votes
0 answers

Appium 1 Webview not showing html elements in Webview

I am using appium to automate testing a Windows hybrid app. The app is written with ionic and angular. The appium inspector is not able to view the html elements in the DOM in order. I am using the WinAppDriver to run the windows application in…
0
votes
0 answers

Problems launching automated tests with Appium.WebDriver, WinAppDriver on WPF

I'm trying to set up automated testing on my net48 WPF app following the methods found in this article: https://www.telerik.com/blogs/get-your-wpf-apps-automated-appium. The application does not launch I'm getting an Exception when the WindowsDriver…
Walter Williams
  • 944
  • 3
  • 11
  • 25
0
votes
0 answers

How to "run as different user" in Winappdriver to lauch a desktop app?

I have a Windows desktop app that I need to launch as different user during which a username and password fields are displayed on UI and I need to enter user credentials. I tried following: DesiredCapabilities appCapabilities = new…
SKN
  • 520
  • 1
  • 5
  • 20
0
votes
0 answers

Appium + WinAppDriver + C# - FindElementByImage throws an error

I am doing test automation on a desktop AUT with WinAppDriver + Appium. I need to find a button that doesn't have any properties I can use in locators, so I thought it could be achieved with image recognition. I found out that there is a function…
0
votes
1 answer

Get text from password field

I am trying to get text from password field, as I need it to pass the test case. Currently I am trying to do it with this _passwordInput.SendKeys(user.Password); Assert.Equals(_passwordInput.Text, user.Password); However when it gets to the assert,…
NotMe
  • 3
  • 4
0
votes
1 answer

Trying to do test automation for Revit plugin but WinAppDriver is not recognising Revit elements

Has anyone done test automation for Revit? What tools did you use? WinappDriver is able to open revit window but is not able to recognise the elements inside it