Skip to main content

Set up local testing for Website Scanner

Set up your internally hosted web pages for running accessibility scans with Website Scanner

The Local Testing feature of Website Scanner enables you to scan your web content for accessibility issues before the content goes public. Catch and fix accessibility issues in your web pages while they are still in a development, staging, or other lower environment. This feature helps you eliminate the costs involved in making retroactive fixes and ensure that your public content is truly accessible.

To learn about Local Testing with BrowserStack, see Test localhost and staging websites.

To use Website Scanner on a locally hosted page:

  1. Set up a local testing connection with BrowserStack.
  2. Add the local testing setup to your website scan configuration.

Set up a local testing connection

Download the Local Binary. It’s a zip file.

Unzip the Local Binary to $HOME/.browserstack, which is the location we recommend.
The following command unzips the Local Binary on macOS:

Terminal
Copy icon Copy snippet

Set the Local Binary path as an environment variable.
For example, the following sets the environment variable on macOS:

Terminal
Copy icon Copy snippet

Confirm the setup.
For example, run the following command:

Terminal
Copy icon Copy snippet

You should see the binary version.

Start a local testing connection:

Terminal
Copy icon Copy snippet

Add local testing setup

Adding local testing setup is part of the tasks you perform to schedule a website scan.

In the Set up a website scan window:

Click Add next to Add a local testing setup. Add local testing setup

If you are a Central Local Testing user, a message indicating so is shown. Then, continue setting up your website scan.
If you are not a Central Local Testing user, the Select a binary to set up local testing connection window appears that shows the list of local binaries you can select from. Select a local testing connection

If you do not have any binaries installed, the No binaries detected message appears. You must have at least one binary installed.

Select the appropriate binary and click Confirm. Your local binary details are shown on the Setup a website scan window. Local binary details

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy