Questions tagged [ui-automation]

UI Automation is programmatic/scripted interaction with a graphical user interface, typically for the purpose of testing or accessibility assistance.

UI Automation is programmatic/scripted interaction with a graphical user interface, typically for the purpose of testing or accessibility assistance.

Examples of Stand-Alone UI Test Tools

Examples of UI Test Frameworks/Libraries

  • Microsoft UI Automation Framework (Win32/WinForms/WPF)
  • Scirocco (Android)
  • Maveryx (Swing)
3757 questions
1
vote
1 answer

How to wait for button in uia automation using powershell

Currently i want to wait to see if a button is enabled in a window i can see many wait commandlet are supported by uiautomation.dll . but could not make it work inside the window. command i am trying. Working code for wait for window Wait-UIAwindow…
Pr Mod
  • 261
  • 2
  • 5
  • 15
1
vote
1 answer

How to set AutomationId property to ItemsControl correctly?

I face a problem with ui-automation in WPF. I can not find items control through query in my test rootElement.FindFirst(TreeScope.Subtree, new PropertyCondition(AutomationElement.AutomationIdProperty, "AID_Positions"))) Its always return null. In…
lga
  • 194
  • 11
1
vote
1 answer

Save File popup issue

Issue I have tried all possibilities by setting profile variables, however the Save dialog in firefox is still appearing every time I try to download a file using my automation framework Content Type of file which is am trying to download is…
Anand Chavan
  • 4,338
  • 6
  • 23
  • 27
1
vote
1 answer

C# UI Automation: Current.Name returns empty string

I want to use System.Windows.Automation in my C# program to report Name property on FocusChangedEvent just like AccEvent.exe does. I have a simple console app which should display the name of the sender whenever FocusChangedEvent is…
user2006190
  • 107
  • 1
  • 4
1
vote
1 answer

Limit the element to be stored in List - selenium/java

I need to know how to store the first 10 values in List instead of storing all the elements that is present? Right now my code stores all the elements: By mySelector =…
John
  • 53
  • 1
  • 7
1
vote
2 answers

Tagging Protractor - Jasmine e2e Tests for execution

I have written some e2e UI tests for an angular 6 app using protractor and jasmine. I am looking to see how I can tag specific "It"s for execution. I want to be able to tag them as @smoke, @ regression etc. How can this be achieved ? I run my tests…
njosep
  • 380
  • 3
  • 14
1
vote
1 answer

Slow to get element with TestStack.White

So what I'm doing is using the .Exist method in TestStack.White to see if an error dialog box exists. The problem I'm having is that finding it is EXTREMELY slow. This is due to the fact the the program has a data table in it with over 400 items,…
845614720
  • 756
  • 1
  • 7
  • 22
1
vote
1 answer

Wait to perform two actions - selenium/ java

I'm trying to use Fluent wait to perform two actions as below: Click on search button Check the result for the element Right now I'm trying with the below code and it doesn't seem to work: public SendMailPage waitForSometime() throws…
1
vote
0 answers

How to access UIAPane items in UIAutomation

I recently started using UIAutomation framework for Powershell from MSDN, and i noticed that Get-Uiapane commandlet giving timeout error, i am running this command for UI Testing for audio page in dell systems. by inspector tool i get Hierarchy of…
Pr Mod
  • 261
  • 2
  • 5
  • 15
1
vote
1 answer

implement ESC using Protractor to close popup window without any input elements

is there someway to press ESC key, when there is no input element to perform the keypress on ? the below solutions I found online does not work as I dont have an input element on the screen I am trying to ESC from. element(by.id('No…
njosep
  • 380
  • 3
  • 14
1
vote
0 answers

protractor bootstrap validation pop message

I want to do the validation using protractor for bootstrap pop up. I used the below code it ran successfully three times but now its getting null. element.all(by.css("input:required")).first().getText().then(function(text) { console.log(text); …
abhishek Sharma
  • 140
  • 2
  • 14
1
vote
0 answers

Extract all text from a window

I'm trying to extract all the text in a given window. I'm using UIAutomationClient for this, but I'm willing to consider other ways. My code works well for some windows (MS Word, Visual Studio) but fails for others (Edge, Chrome). The problem is…
1
vote
1 answer

opening URL from a file and taking screenshots in UiPath

It's a UI path sequence. I am trying to read some URLs from an Excel file. Launch browser Go to URL from file Take Screenshot Save screenshot I am unable to use the "take Screenshot" activity. Unsure, how can I take the screenshot and save it as a…
Firaun
  • 369
  • 1
  • 5
  • 21
1
vote
0 answers

Android - Automate finding String truncation on Screen

We are developing an app which supports more than 10 languages including English. As the developers can not check every screen for the text truncation on different screen sizes, we want to automate the testing. Is there any best way of achieving it?
OSS CETi
  • 21
  • 4
1
vote
2 answers

How to clear console errors using Selenium

I am using this code to detect console errors logged while executing automated UI tests with ChromeDriver: public static List getJavaScriptErrors(Level level) { return…