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
2
votes
1 answer

How to execute WinAppDriverUiRecorder

I want to try the tool called Ui Recorder which is included in the WinAppDriver. I opened the file WinAppDriverUIRecorder.sln in Visual Studio 2019. Then I chose the Debug Option to open this recorder. However during the execution I got the…
sergioMoreno
  • 189
  • 1
  • 15
2
votes
1 answer

WinAppDriver with Python problems

Overall my problem is I am trying to automate a Windows 10 application with WinnAppDriver and writing my automation in Python. There seems to be very little information on how to do this as most WinAppDriver examples are in Java…
Bart Clark
  • 21
  • 1
  • 3
2
votes
1 answer

Appium desktop app test throws element could not be located exception, but passes when the app is launched before the test runs

I'm trying to learn Appium and using it for WPF application testing. Tests against Calculator or Notepad are running fine, but recently I've encountered a problem when trying to test custom WPF application. Appium desktop app tests throw "An element…
WhisperWind
  • 23
  • 1
  • 6
2
votes
0 answers

VS2019 Test Explorer missclicks due to wrong focus

I am using Visual Studio 2019, and the WinAppDriver to run Unit Tests on a simple WPF Application. For that i use the Test Explorer integrated in VS. Problem: When i run my test via Test Explorer it opens my desired window in the background (behind…
2
votes
1 answer

WinAppDriver - Cannot click item or select item in Combobox

With WinAppDriver and VB.NET, I am trying to get an item selected in a Combobox. I need to select it directly, not by keyboard typing or cursor key navigation as that triggers other program actions on the not-to-be-selected items. I've been trying…
ORNS
  • 107
  • 8
2
votes
2 answers

Actions MoveByOffset in Win App Driver: How can I see it or slow it down?

I have the code below and it does drag and drop from a position to another position but it't not exactly the correct position. How can I slow it down or see what it's doing? I have used Mouse.Move in CodedUI and Mouse.StartDragging etc and you can…
Ewan
  • 541
  • 8
  • 23
2
votes
2 answers

C# UI Tests WinAppDriver Appium test color?

Currently testing an Excel add in pane that we've recently added into our project. I'd like to test the color of the, "Create worksheet" text. public void ConfirmBtnText() { excelSession.FindElementByName("Home").Click(); …
JumpingJacks
  • 257
  • 3
  • 18
2
votes
1 answer

Python windows app UI automation testing: how to send mouse and keyboard events to winappdriver?

I am testing a window app( window form). I use python(appium, robotframework), winAppDriver. My task: right click a button, show the context menu, and select one of them. what I need to do: using python to send out right click, and then select…
Bing
  • 378
  • 1
  • 3
  • 15
2
votes
0 answers

What decides which part of the common XAML controls is accessible through UIAutomation

I am trying to automate UI testing through WinAppDriver of a UWP app. The doc says that anything that is visible through the inspect.exe (i.e UIAutomation) could be controlled through WinAppDriver. This means the basic controls can be accessed…
2
votes
1 answer

Automate DevExpress Spreadsheets/ GridViews with WinAppDriver

I am trying to automate a WinForm application using WinAppDriver (https://github.com/Microsoft/WinAppDriver). This application is using DevExpress. I need to properly handle a Spreadsheet or GridViews Controls from DevExpress. The only possible…
1
vote
1 answer

Intermittent WebDriverException when running Winappdriver/appium Automation test in MS Hosted Agent ('windows-2022')

Brief background: Automating a winform application using WInAppDriver/Appium. Using Specflow's BDD to define tests At every start of test the automation test will always check if App is open already, if not, then fire-up/initialised application -…
1
vote
0 answers

Unable to launch a Windows application using Appium in C#

I'm trying to automate a Windows application using Appium in C# with Visual Studio. Here's my code: using NUnit.Framework; using OpenQA.Selenium.Appium; using OpenQA.Selenium.Appium.Windows; using System; namespace automated_test { public class…
1
vote
0 answers

Appium throwing InvalidSelectorException while using xpath for a WindowsElement on Desktop?

I'm unable to find the right XPath expression for a Windows Element. I have an automation script that works on Windows 10 Enterprise but doesn't work on Windows Server OS My main question is why does Appium work on Windows 10 Enterprise OS but not…
1
vote
0 answers

Microsoft API source is not loading in pop up when we click on "Login with Microsoft Account" of windows or electron application while automating it

Microsoft API source is not loading in pop up of windows or electron application while we click on "Login with Microsoft Account" when automating it. But its working fine while we opening it manually. Possible reasons: Seems source for login page…
1
vote
0 answers

WinAppDriver : selenium.common.exceptions.WebDriverException: Message:

I am new to Windows Automation using Python. Trying to do a handson to launch a calculator and perform some basic calculations using WinAppdriver. I am facing below exception and unable to figure out the problem. Can someone help me…
Thiyagu
  • 85
  • 1
  • 12
1 2
3
19 20