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

Appium/WinAppDriver Can't Find Context Menu - But Only On Certain Machines

I'm running a set of automated UI tests using Appium/Winappdriver on Windows 10. The test framework is compiled in Visual Studio 2017 using mstest. The problem that I am having is with tests that use a right-click to open a context menu, then select…
3
votes
3 answers

Starting WinAppDriver.exe programmatically

Before starting test execution, I have to manually start this WinAppDriver.exe. I want to automate this task when I start executing my test cases it should start this exe and after finish it will close it. I have tried in Java with below code but…
Kanti
  • 1,062
  • 1
  • 10
  • 27
3
votes
2 answers

WinAppDriver and Appium - send.keys() sending a '#' in place of ''\'

I'm having trouble with sending a backslash character using WinAppDriver and Appium. When I use send.keys to send a backslash character, a '#' character is sent in it's place. I have tried in numerous ways (shown below). Appium v 0.28 WinnAppDriver…
Trevor Fuller
  • 93
  • 1
  • 6
2
votes
0 answers

running gui application on github hosted runner

for testing purposes, is it possible to run GUI applications on GitHub-hosted runners? I tried to run Windows Calculator (Microsoft.WindowsCalculator_8wekyb3d8bbwe!App) on "windows-2022" via WinAppDriver and it fails with "WebDriverException:…
Adrian Herscu
  • 738
  • 1
  • 6
  • 19
2
votes
2 answers

WinAppDriver:-Reference to type 'IFindsByTagName' claims it is defined in 'WebDriver', 'IFindsByClassName' , 'IFindsById' claims it is defined'

1- Developer mode active 2- WinApp installed properly 3- Nuget appium dependency installed 4- Microsoft visual studio 2022 using OpenQA.Selenium.Appium; using OpenQA.Selenium.Appium.Windows; namespace WebAppDriverNUNIT { public class Tests …
pawansinghncr
  • 181
  • 1
  • 7
2
votes
0 answers

WinAppDriver - Get Window Handles Titles

I need to create an algorithm that switches from one windows to another using WinAppDriver like this windowsDriver.SwitchTo().Window(allWindowHandles[0]). However, I also need the Title of the pages found in windowsDriver.WindowHandles, or at least…
Petru Ritivoiu
  • 145
  • 1
  • 12
2
votes
1 answer

OpenQA.Selenium.Interactions - KeyUp seems not taking affect after a KeyDown action

I am currently undertaking a massive challenge on inheriting our test automation lead's Test Automation framework. So far is ok. but I come to the bit where I need to simulate a Hold Shift Key Down and hit the down arrow a number of times then…
bdrummond
  • 63
  • 6
2
votes
0 answers

Winappdriver and selenium in the same automated test

Hi I could do with some help / more experienced eyes. I have a WPF application which I have started automating some UI tests for using winappdriver, upon further investigation it has embeded html in it - webview, and can fire off requests to open…
ashbash
  • 21
  • 1
2
votes
1 answer

Why won't my waits work - Implicit Wait, Explicit Wait?

I am clearly missing something fundamental here, I have tried: Explicit Wait waitForMe = new WebDriverWait(driver, TimeSpan.FromSeconds(60)); var headerInSearchResults =…
cw84
  • 2,111
  • 5
  • 24
  • 37
2
votes
0 answers

Appium/ WinAppDriver: Unable to Automate .jnlp applications - The specified Executable is not a valid application for this OS Platform

I am trying to automate .jnlp applications located on remote machine. Developers have built .bat files to launch .jnlp Apps. JNLP apps uses Java to launch/open. I am using Appium.Webdriver to launch/ Automate these apps. Below is my code Tools: C#,…
2
votes
1 answer

How to launch click-once application in Win App driver?

I am using Win App Driver to automate WPF application, Our WPF application is click once application. When I launch the application I noticed driver is null. private string notepadAppid = …
Surya Rao
  • 23
  • 6
2
votes
3 answers

OpenQA.Selenium.WebDriverException: [windowHandle] is not a top level window handle solution

Some people including me were suffering from this issue called "OpenQA.Selenium.WebDriverException: [windowHandle] is not a top level window handle".
Shabbir Hossain
  • 107
  • 1
  • 11
2
votes
2 answers

Connecting to a running process in Winappdriver using Javascript

I am fairly new to JS/Winappdriver. The application I am trying to test is a windows based "Click Once" application from .Net, so I have to go to a website from IE and click "Install". This will open the application. Once the application is running,…
2
votes
1 answer

How to integrate WinAppDriver using Robot Framework with or without Appium?

I want to test a Desktop application (proprietary software), using WinAppDriver whereas the test is written in Robot Framework and /or Appium if Appium is needed at all. I need one example test case using Robot Framework which will use WinAppDriver…
2
votes
1 answer

Is there a way to retrieve information from a ui element that has the property IsControlElement = False? (Python + Appium + WinAppDriver)

Greetings and salutations! I'm working on a UI automation project for a windows desktop app (FrameworkId: Win32) Stack: Python (3.7) + Appium (1.15.1) + WinAppDriver (v1.1). I have identified an element using Inspect.exe, but when I try to code,…
1
2
3
19 20