0.15.2 • Published 3 months ago

@guidepup/setup v0.15.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Guidepup Setup

Documentation

MacOS Big Sur Support MacOS Monetary Support MacOS Ventura Support MacOS Sonoma Support Windows 10 Support Windows Server 2019 Support Windows Server 2022 Support

This package sets up your environment for screen reader automation.

It enables automation for VoiceOver on MacOS and NVDA on Windows.

Getting Started

Run this command:

npx @guidepup/setup

And get cracking with your screen reader automation code!

Usage

GitHub Actions

If you are using GitHub Actions, check out the dedicated guidepup/setup-action:

- name: Setup Environment
  uses: guidepup/setup-action

MacOS

If you are running this command locally, you might find it prompts you to pass in credentials so that it can using UI automation to change a checkbox value which enables the automation of VoiceOver. If you are uncomfortable with providing your credentials you can manually achieve these steps by following the manual VoiceOver setup documentation.

CI

If you are running this command in CI/CD, it is recommended to add the --ci flag to prevent interactive prompts:

npx @guidepup/setup --ci

Ignore TCC.db Updates

If updating the TCC.db is not possible (due to SIP) or required you can skip the database update step by using the --ignore-tcc-db flag:

npx @guidepup/setup --ignore-tcc-db

!NOTE If the necessary permissions have not been granted by other means, using this flag may result in your environment not being set up for reliable screen reader automation.

Recording

If you are encountering errors in CI for MacOS you can pass a --record flag to the command which will output a screen-recording of the setup to a ./recordings/ directory:

npx @guidepup/setup --ci --record

Windows

NVDA Installation

When running on windows a portable NVDA instance compatible with Guidepup will be installed to a temporary directory by default. The location of this installation directory is stored in the Windows registry under the key HKCU\Software\Guidepup\Nvda.

If you want to specify the directory that NVDA is installed to you can pass a --nvda-install-dir flag to the command:

npx @guidepup/setup --nvda-install-dir <NVDA_INSTALLATION_DIRECTORY>

Foreground Timeout Lock

Modern versions of Windows have a setting which prevents new application instances launching in front of other applications in quick succession, requiring over 3 minutes between activations before it will actually show the window - in the interim it launches the window minimized.

Many test automation frameworks will completely close down a browser after a test has finished and then launch a new instance for the next test - on Windows this suffers from the timeout lock on foreground windows. This impacts on screen reader automation which need the window to activate and focus to be able to drive the screen reader on the application.

To mitigate this the setup script updates two keys in the Windows registry under HKCU\Control Panel\Desktop:

  • ForegroundLockTimeout - Specifies the time in milliseconds, following user input, during which the system will not allow applications to force themselves into the foreground. Defaults to 200000.
  • ForegroundFlashCount - Determines the number of times the taskbar button will flash to notify the user that a background window has been activated by the system. If the time elapsed since the last user input exceeds the value of ForegroundLockTimeout, the window will automatically be brought to the foreground. Defaults to 3.

Both of these are set to 0 by the setup script.

Powerful Tooling

Check out some of the other Guidepup modules:

Resources

0.15.0

3 months ago

0.15.1

3 months ago

0.15.2

3 months ago

0.14.0

4 months ago

0.13.0

5 months ago

0.12.1

5 months ago

0.12.0

5 months ago

0.11.2

6 months ago

0.10.0

1 year ago

0.11.0

1 year ago

0.11.1

1 year ago

0.9.0

1 year ago

0.6.3

1 year ago

0.8.0

1 year ago

0.6.2

1 year ago

0.6.4

1 year ago

0.5.0

1 year ago

0.7.0

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago