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

WinAppDriver canonot find element when new window of desktop application created

"use strict"; require("./helpers/setup"); var wd = require("wd"), _ = require('underscore'), serverConfigs = require('./helpers/appium-servers'), Q = require('q'); describe("Windows test from Node", function () { …
Jonny Sun
  • 1
  • 6
0
votes
2 answers

Cannot start Appium server programmatically

I'd like to run an Appium server with default settings from C# like that: AppiumLocalService appiumLocalService = AppiumLocalService.BuildDefaultService(); appiumLocalService.Start(); I also set the environment variables right before…
Twi
  • 765
  • 3
  • 13
  • 29
0
votes
1 answer

C# - Process object not running cmd command

I'm using WinAppDriver in order to run some test cases on Excel. I'm trying to start the server through the code so that I don't have to manually do it in command line. I have the following code- public static void StartWinAppServer(int port) { …
Krazy Dev
  • 184
  • 3
  • 16
0
votes
1 answer

Explicit Wait for automating windows application using winappdriver

I am a newbie to Windows Application Driver and my project demands automating the desktop application, so I decided to use winappdriver as it is similar to selenium, on which I am pretty confident about using. speaking of the issue, Just wondering…
kandha guru
  • 1
  • 1
  • 3
0
votes
2 answers

Python + Appium + Winappdriver + Notepad: self.driver.close_app() doesnt close NotePad

Trying Python + Python Appium Library + WinAppDriver to perform a simple automation task: Launch Notepad Enter some text. Close Notepad without saving When I close notepad using self.driver.close_app() call, it doesn't close it, since there is…
utpal
  • 331
  • 5
  • 13
0
votes
1 answer

WinAppDriver WindowsDriver url problems

I have got a solution, it's actually a demo on how Win App Driver should work but I can't for the life of me get it to work. Using Win App Driver with selenium and appium web drivers (as mentioned at 5 minutes into this video). I have the solution…
Ewan
  • 541
  • 8
  • 23
0
votes
1 answer

Interact with another window in application

I have a simple application with button, which shows another form with ShowDialog() method. I would like to click close button from this opened form, but calling Session.FindElementByName("Close") will try to click close button from first form which…
Panu Oksala
  • 3,245
  • 1
  • 18
  • 28
0
votes
4 answers

Is WinAppDriver works only with the applications which are installed on Windows10?

Is WinAppDriver works only with the applications which are installed on Windows10 machine? I need to Automate the installation process of a software, but WinAppDriver simply does not find the elements on the installation wizard. I am giving…
Rajneesh
  • 11
  • 1
0
votes
3 answers

WinAppDriver element not found

I'm trying to use WinAppDriver, Appium & C# to do some UI automation on an ancient Delphi 5 application. It fires up the app, there's a little splash screen then a windows modal box for logging in. The usernames already filled out, so just type out…
PeterG
  • 334
  • 5
  • 20
0
votes
0 answers

Need to click on various pictureBoxes on desktop Application by XPath

I'm automating my desktop application but I got stucked in this part. I need to avaliate itens in that application clicking on "Sim" e "Não" (Yes and No) buttons. Thoose buttons are pictureboxes. Here is the xml from this part.
0
votes
1 answer

WinAppDriver : work on an uwp under development

With the test tool WinAppDriver, for launching the app you use the code bellow: DesiredCapabilities appCapabilities = new DesiredCapabilities(); appCapabilities.SetCapability("app", "appID"); but for an uwp under devlopement, how het the app id?…
Pipo
  • 5,170
  • 7
  • 33
  • 66
0
votes
1 answer

How to nest using selenium elements C#

I've made a number of tests using Selenium. I was curious if I'm nesting correctly. I'm not sure if there is a better way and if there is I would be happy to hear it. At the moment I open a PowerPoint session in my start up using the WinApp Driver.…
Craig Gallagher
  • 1,613
  • 6
  • 23
  • 52
0
votes
1 answer

Element can't be found Selenium

I'm using selenium to run tests I have created. I now want to start error handling. I want to be able to get the element that could not be found and say something like "Element start could not be found" in my error log. If this can't be done I would…
Craig Gallagher
  • 1,613
  • 6
  • 23
  • 52
0
votes
1 answer

How to reference .runsettings file values in C# unit test methods?

I am using Microsoft's WinAppDriver in conjunction with Visual Studio 2015 unit tests to automate testing of Windows applications. These tests are being run from the command line using VSTest.exe because I can pass a .runsettings file as a parameter…
0
votes
1 answer

unable to using winapp

I am unable to run the code capabilities.setCapability("app", "C:\\Windows\\System32\\calc.exe"); CalculatorSession = new IOSDriver(new URL("http://127.0.0.1:4723"), capabilities); this code opens the calculator app but it say IOSDriver is wrong…
teja
  • 127
  • 2
  • 11