ui-automation

How to know the ControlType of a UI Element from CurrentControlType property

回眸只為那壹抹淺笑 提交于 2021-02-08 09:00:24
问题 Basically I am using UIAutomationClient.Interop.dll for some UI work I am currently doing and I am facing the following issue: I have a UI Element I would like to know its Control Type. UIAutomationClient.Interop.dll exposes the following property: IUIAutomationElement::CurrentControlType property Above property returns an Int that represents the Control Type ID but not a ControlType object. Question: How could I know what is the ControlType of an UI Element by just knowing its ID? I was not

Azure devops - Preparing self hosted test agents

你说的曾经没有我的故事 提交于 2021-02-08 08:45:20
问题 What is the best way to create a list of Self-hosted agents in Azure Devops (In order to run Automated tests with Smartbear TestExecute) without doing all the steps manually ? Let's assume that there will be 40-50 PCs running Windows 10 which have to be made an agent and linked with the Azure pipelines. I'm looking for a way to avoid doing these steps 50 times: Create these agents manually by following all the steps here https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2

Get text and caret from a textbox in another application

人走茶凉 提交于 2021-02-08 08:34:12
问题 Background information I am working on a Windows Speech-To-Text application. When speech has been recognized, the text should be inserted into the textbox that currently has keyboard focus (Think Word/Firefox/other applications). To insert the text I am currently using InputSimulatorPlus. When inserting the text, it is important the recognized text is formatted to fit the surrounding text, like: uppercase letter after punctuation lowercase first letter when it is NOT after punctuation

Outdated UI automation tree

…衆ロ難τιáo~ 提交于 2021-02-07 02:48:32
问题 I am trying programming an automated tester application using the new native Microsoft UI Automation interface 3.0 (in VC++ 2010, Win7). The Application Under Test (AUT) is a WPF application. Almost everything works fine... I can install event handlers, navigate through the tree, search elements using various conditions and control the found elements using their patterns. But yesterday I found a behaviour that leaves me despaired: The UIA tree of my AUT simply is not updated after switching

How to do UI Automation of Metro-Style Apps?

南笙酒味 提交于 2021-02-06 01:54:19
问题 I've downloaded and installed the windows 8 consumer preview, and I'd like to figure out how to use the UI Automation API's to get data from metro style applications. Background: I have a lot of automated tests which use the Microsoft UI Automation API's to interact with applications. The scripts are written in IronRuby against .NET 4 Initially, I'd simply like to check if the start menu is visible (and if so, close it) According to Microsoft, the normal UI Automation API's should be able to

How to do UI Automation of Metro-Style Apps?

南笙酒味 提交于 2021-02-06 01:52:48
问题 I've downloaded and installed the windows 8 consumer preview, and I'd like to figure out how to use the UI Automation API's to get data from metro style applications. Background: I have a lot of automated tests which use the Microsoft UI Automation API's to interact with applications. The scripts are written in IronRuby against .NET 4 Initially, I'd simply like to check if the start menu is visible (and if so, close it) According to Microsoft, the normal UI Automation API's should be able to

How to do UI Automation of Metro-Style Apps?

橙三吉。 提交于 2021-02-06 01:52:01
问题 I've downloaded and installed the windows 8 consumer preview, and I'd like to figure out how to use the UI Automation API's to get data from metro style applications. Background: I have a lot of automated tests which use the Microsoft UI Automation API's to interact with applications. The scripts are written in IronRuby against .NET 4 Initially, I'd simply like to check if the start menu is visible (and if so, close it) According to Microsoft, the normal UI Automation API's should be able to

How to do UI Automation of Metro-Style Apps?

十年热恋 提交于 2021-02-06 01:48:57
问题 I've downloaded and installed the windows 8 consumer preview, and I'd like to figure out how to use the UI Automation API's to get data from metro style applications. Background: I have a lot of automated tests which use the Microsoft UI Automation API's to interact with applications. The scripts are written in IronRuby against .NET 4 Initially, I'd simply like to check if the start menu is visible (and if so, close it) According to Microsoft, the normal UI Automation API's should be able to

How to chain cy.get in cypress

China☆狼群 提交于 2021-01-29 08:12:40
问题 I'm trying to get to #1 element then get to #2 element to click on #3 element . but I'm having a trouble with getting the correct CSS selector in Cypress. How to write a test script for this? I've tried cy.get('.ui.active.visible.button.floating.dropdown.fr-dropdown').contains('Delete yield').click() but doesn't work. Is there a way to get #1 first, then #2 to reach #3? this is not a real code but something like this. cy.get('.yield-event__date-and-text--container').contains('10kg') cy.get('

How to handle modal dialog in pytest-qt without mocking the dialog

空扰寡人 提交于 2021-01-29 07:30:47
问题 I am using pytest-qt to automate the testing of a PyQt GUI. The dialogs need to be handled as a part of the testing(dialogs should not be mocked). For example, file dialog that comes after a button-click has to be handled. There are 2 problems After the button click command, the program control goes to the event handler and not to the next line where I can try to send mouseclick/keystrokes to the dialog. Since the QDialog is not added to the main widget, it is not being listed among the