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
11
votes
4 answers

The URL '/session' did not map to a valid resource | How to run desktop application test using winAppDriver / windows application driver using java?

I'm trying to run automate test for windows calculator app on windows10 using Windows application driver (winAppDriver), appium and java as below example: https://github.com/Microsoft/WinAppDriver/tree/master/Samples/Java/CalculatorTest, but when I…
Vijendran Selvarajah
  • 1,330
  • 1
  • 11
  • 31
7
votes
2 answers

WinAppDriver - How do I get the list of properties available on an element

I am using Appium with WinAppDriver to control a WinForms / WPF application. I am looking for a programmatic way to get the list of properties available on an element that has been retrieved. My current thinking is to ask for the className and use…
Jason
  • 840
  • 11
  • 23
7
votes
2 answers

Selenium clicking wrong element

I have a number of tests. Sometimes if an element can't be found it just clicks on the top left of the screen. This doesn't happen all the time however it does happen. I'm not sure why this is happening. In my setUp method I'm telling it to click…
Craig Gallagher
  • 1,613
  • 6
  • 23
  • 52
6
votes
3 answers

How To Access GridView Cells using Winappdriver?

I am trying to get Cell Value From GridView In WPF Project with winappdriver. I get an issue with this line: string name = row.FindElementByName("Name1").Text; An element could not be located on the page using the given search parameters. Could…
Mohamad Mahmoud Darwish
  • 3,865
  • 9
  • 51
  • 76
5
votes
1 answer

How can I verify the state of a WPF checkbox during a UI Automation Unit Test using the Windows Application Driver?

My simple WPF application includes a check box. I am trying to test this application automatically with the Windwos Application Driver. After creating a session the check box is clicked. Afterwards I want to verify if the checkbox is checked. But…
5
votes
2 answers

Why does WinAppDriver.exe close immediately?

I have been struggling to get anything working with WinAppDriver. It's a way of using Selenium to to test window applications. As per the instructions below, I have installed WinAppDriver. When you run it, it should stay open in a command window.…
Ewan
  • 541
  • 8
  • 23
4
votes
3 answers

Appium WinAppDriver and Selenium 4

I am struggling to use get WinAppDriver to open an application, my maven imports are as follows: org.seleniumhq.selenium selenium-java
D. Barnett
  • 123
  • 6
4
votes
1 answer

Python Tkinter GUI Automation

I want to get into GUI automation in order to run tests on my own program. The Program I want to test is written in Python and uses Tkinter for the GUI. The testing code though does not necessarily have to be in python, CPP would also be alright. …
Royi Levy
  • 513
  • 1
  • 3
  • 14
4
votes
1 answer

Sendkeys not working in Winappdriver using Appium

I am automating a desktop application using WinAppDriver using Appium in C# language. The issue that I am facing is none of the code for the keyboard interaction is working, like setText, keys.ArrowDown and so on. Initially, it was working…
Saloni Singhal
  • 141
  • 1
  • 6
4
votes
1 answer

WinAppDriver - Locate element using text

I am automating a simple Windows Form Application and I am attempting to locate a WindowsElement using its inner text. My WindowsElement looks like this: ControlType = DataItem Name = 'Identifier' ValuePattern.Value = 'Text' …
CEH
  • 5,701
  • 2
  • 16
  • 40
4
votes
2 answers

Waiting for element before clicking with WinAppDriver

I have such a trivial issue but I am having a hard time getting my code to properly wait for an object before moving on. I have the following config set for my driver session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(60); I was…
Tree55Topz
  • 1,102
  • 4
  • 20
  • 51
3
votes
1 answer

"Bad capabilities. Specify either app or appTopLevelWindow to create a session" Error given by the WinApp driver

I am getting the below error screenshot when using the WinApp driver for the desktop automation. The source code I am using to initiate the WinApp driver session as below. public void setupDesktopAutomation(String appName, String platformName,…
3
votes
5 answers

How to select an item from ComboBox using WinAppDriver?

Generally for web application if we want to select an option from drown we use SelectElement method. But in Windows application, when I tried to use SelectElement method, I got a below error: OpenQA.Selenium.Support.UI.UnexpectedTagNameException:…
Ankit Rathi
  • 109
  • 1
  • 9
3
votes
0 answers

How to detect/inspect element in desktop application developed in Juce framework and C++ application?

I am trying to automate desktop application which was developed by CPP and juce framework. I have tried with the tools such as 'UIAVerify', 'Inspect.exe', 'UISpy', but object or elements in that desktop application not able to identify, could any…
3
votes
3 answers

Using WinAppDriver, I need help on how to change focus when a new window is opened in the WPF application

I need help on how to change focus when a new window is opened in the WPF application with WinAppDriver With WinAppDriver I am able to open a WPF application and test using the code below, I need help on how to change focus when a new window is…
user2091773
  • 41
  • 1
  • 6
1
2 3
19 20