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
154
votes
2 answers

Google Chrome accessible tree cache issue with UI Automation

Google Chrome does not refresh accessibility elements (AutomationElement) when a user scrolls down in the browser. To reproduce it: Enable renderer accessibility with : "chrome --force-render-accessibility" or by setting on Global Accessibility…
Perfect28
  • 11,089
  • 3
  • 25
  • 45
82
votes
5 answers

How to switch to new window in Selenium for Python?

I am working on selenium automation project using Python. I am facing an issue, which is handling multiple browser windows. Scenario is as follows. When I click a link on the home page, a new window opens. In the newly opened window I cannot perform…
Sandeep Raveendran
  • 821
  • 1
  • 7
  • 3
70
votes
7 answers

Access a new window - cypress.io

The question is as simple as that. In Cypress, how can I access a new window that opens up when running the test. Steps to recreate : Run the test. After some action, new window pops up (the url is dynamic in nature). Fill in the fields in the new…
Kaushik NP
  • 6,733
  • 9
  • 31
  • 60
56
votes
11 answers

Get Current Activity in Espresso android

In case of a test that crosses multiple activities, is there a way to get current activity? getActivtiy() method just gives one activity that was used to start the test. I tried something like below, public Activity getCurrentActivity() { …
fenrigne123
  • 593
  • 1
  • 4
  • 9
53
votes
3 answers

Frontend testing: what and how to test, and what tool to use?

I have been writing tests for my Ruby code for a while, but as a frontend developer I am obviously interested in bring this into the code I write for my frontend code. There is quite a few different options which I have been playing around…
DJ Forth
  • 1,518
  • 2
  • 18
  • 26
41
votes
4 answers

Changing Android Device orientation with ADB

I'm using Android 4.4 on a real device and I want to set the device orientation via adb. I don't want it done with uiautomator since it won't last after the termination of the uiautomator code. How can I do this?
ShibMe
  • 451
  • 1
  • 4
  • 3
39
votes
3 answers

How to get Bundle Id of your app iOS UIA automation

How do I get the bundle Id of the app I am in ?
swathy valluri
  • 5,039
  • 2
  • 16
  • 13
39
votes
9 answers

What's a good, if any, .NET Windows automation library?

I'm looking for a library that can be used in native .NET code, just like any .NET assembly. The purpose of the library must be to automate Windows (push a button, select a window, send keys, record & playback, that sort of thing). So: the library…
Abel
  • 56,041
  • 24
  • 146
  • 247
37
votes
11 answers

Chrome opens with "Data;" with selenium

I am a newbie to Selenium and trying to open localhost:3000 page from Chrome via selenium driver. The code is : import com.google.common.base.Function; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import…
31
votes
10 answers

How to get webDriver to wait for page to load (C# Selenium project)

I've started a Selenium project in C#. Trying to wait for page to finish loading up and only afterwards proceed to next action. My code looks like this: loginPage.GoToLoginPage(); loginPage.LoginAs(TestCase.Username, TestCase.Password); …
30
votes
3 answers

How to get Bundle ID of Mac application?

I want to use Python and atomac module to trigger an application in macOS like following scripts: atomac.launchAppByBundleID() app_win = atomac.getAppRefByBundleId(app_bundle_ID) But I don't know how to get the Bundle ID (app_bundle_ID) of the…
Qing
  • 1,019
  • 1
  • 8
  • 6
29
votes
2 answers

What better tool than Sikuli to use for screen automation on Windows 7 (or preferably multi-platform)

I'm using Sikuli for Screen automation. i.e for clicking of GUI elements according to their appearance on the screen. This works all right, but Sikuli has one major disadvantage for me: Slow start-up for each script (because the whole JVM is loaded…
halloleo
  • 9,216
  • 13
  • 64
  • 122
28
votes
1 answer

AutomationElement shows up using Inspect.exe but does show not up when using UIAutomationCore.dll or System.Windows.Automation

TL;DR: What am I doing wrong that is causing the workspace pane to show up in Inspect Objects but not show up in my custom code? I am trying to write some UI automation to a 3rd party program. I am using Inspect.exe that came with the Windows SDK,…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
28
votes
3 answers

How can I use EnumWindows to find windows with a specific caption/title?

I am working on an application that will eventually be an api for driving UI Tests for a WPF application. At one point of the initial test we are working on, we get 2 Windows security popups. We have some code that loops 10 times, it gets the handle…
user1618236
28
votes
5 answers

Can UI Automation be disabled for an entire WPF 4.0 app?

We are developing a WPF 4.0 application for internal use. On some clients, we are experiencing huge performance issues due to UI automation (these clients have software installed like tablet service pen, touch, ..). This is a known issue for WPF…
KoenJ
  • 1,093
  • 2
  • 13
  • 24
1
2 3
99 100