winappdriver

Drag and drop in WinAppDriver doesn't work

故事扮演 提交于 2021-01-05 07:30:35
问题 I try to automate tests of a drag and drop behavior in a WPF application. One custom control is dragged on another: Drag and drop behavior implemented in the usual WPF way: <UserControl ... MouseMove="ToolboxModule_OnMouseMove"> private void ToolboxModule_OnMouseMove(object sender, MouseEventArgs e) { base.OnMouseMove(e); var data = new DataObject(); data.SetData("ModuleDescription", DataContext); if (e.LeftButton == MouseButtonState.Pressed) DragDrop.DoDragDrop(this, data, DragDropEffects

WinAppDriver - identifying Value.Value property using xpath

∥☆過路亽.° 提交于 2020-02-06 19:31:44
问题 So for our application, there are several places where we are missing automation IDs and just good unique identifiers in general. In one particular case the only good identifier that I can use is a Value.Value property identified by the Inspect tool. I tried grabbing this element using a basic xpath command.. FindElementByXPath("//*[@Value.Value='" + value + "']"); But this did not work... Can WinAppDriver use these properties in any way? 回答1: You can do something like this. If there is a

WinAppDriver OutLook New Email Elements not found

狂风中的少年 提交于 2020-01-25 07:26:26
问题 Trying to mimic (automate) email sending through outlook using WinAppDriver, the "New E-mail" element is recognized and new window opens but on the new Window the "To","CC" etc controls are not recognized. I suspect the new windows session is not available for the driver. try { DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setPlatform(Platform.WIN10); //capabilities.setCapability("appTopLevelWindow", "0xBB880A"); capabilities.setCapability("app", "C:\\Program

Windows Application Driver handle windows explorer window

a 夏天 提交于 2020-01-06 08:57:30
问题 I'm trying to automate a windows desktop application and everything is fine until in one of the steps in my application, I have to click on a "Browse" buttom that opens a windows explorer window to select an image and load it. The thing is that I do not know how to make WinAppDriver focus in this new window, to be able to select the image and load it. This is a part of the desktop application, and when sending click on Browse: 回答1: You probably need winappdriver to change its current handle

Appium WinAppDriver C# Calculator example Error

泄露秘密 提交于 2020-01-06 06:08:16
问题 I'm trying to just run the calculator test C# example (https://github.com/Microsoft/WinAppDriver/tree/master/Samples/C%23/CalculatorTest) inside visual studio 2017. When I download and build the example, it shows several lines as deprecated; DesiredCapabilities appCapabilities = new DesiredCapabilities(); appCapabilities.SetCapability("app", CalculatorAppId); appCapabilities.SetCapability("deviceName", "WindowsPC"); and one as an error that needs to be changed; CalculatorSession.Manage()

How do I wait for an element using the WinAppDriver in UWP?

烂漫一生 提交于 2019-12-23 04:49:17
问题 I'm currently migrating my Coded UI Tests for a UWP app to Appium using the WinAppDriver and I have come across the issue, that I can't wait for an element to show up. There is no way to wait for a element to be "ready" as the Coded UI Test from Microsoft did. In the ClassInitialize method everything works fine (data is entered on the login view) and the login button is clicked. After the click event is triggered the app shows a progress bar until the user is logged in. My problem is that I

Waiting for element before clicking with WinAppDriver

左心房为你撑大大i 提交于 2019-12-11 05:14:06
问题 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 expecting this to mean that it would wait a minimum of 60 seconds before throwing errors related to element identification such as Message: System.InvalidOperationException : An element could not be located on the page using the given search parameters.

Why does WinAppDriver.exe close immediately?

假如想象 提交于 2019-12-07 15:52:11
问题 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. Mine does not stay open however and that is the problem. My Question is why does WinAppDriver close immediately when I navigate to "C:\Program Files (x86)\Windows Application Driver" and run (Open) it from it? I have tried right clicking and choosing

Why does WinAppDriver.exe close immediately?

戏子无情 提交于 2019-12-05 20:03:51
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. Mine does not stay open however and that is the problem. My Question is why does WinAppDriver close immediately when I navigate to "C:\Program Files (x86)\Windows Application Driver" and run (Open) it from it? I have tried right clicking and choosing "Run as administrator" and the same thing happens. I have spoken to IT support and they checked that