Code Monkey home page Code Monkey logo

voiceover-tester's Introduction

VoiceOver Tester

This script simulates various VoiceOver actions on a webpage and prints a log of the information passed to the screen reader. You can run this tester on Firefox Nightly, Nightly Debug, or Safari. This tester supports live web pages as well as sample web files (html, xhtml, etc).

How do I use it?

Download the AppleScript file from this directory. Using terminal, navigate to your downloads (or wherever you've placed the script). To test, run the following:

osascript VoiceOver_Tester.scpt [browser] [input] [file path or site flag] [site]

browser

Pass the single letter corresponding to the browser you'd like to run your tester on:

  • f = Firefox Nightly
  • d = Nightly Debug
  • s = Safari

input

Pass the (relative) path to the text file containing your VoiceOver actions. These will be translated into key presses as the script runs. The currently supported actions are:

  • next (VO + right)
  • prev (VO + left)
  • in (VO + shift + down)
  • out (VO + shift + up)
  • activate (VO + space)
  • web (VO + CMD + f)

"Web" is a little hack-y, but it attempts to skip the browser UI and navigate directly to web content. It's a good idea to place this at the start of your input file if you're testing a website and not the browser chrome.

Files vs. Sites

Because launching files differs from launching live websites in AppleScript, the script requires that you indicate what kind of path you're passing as an argument. If you'd like to pass a live website, your third argument should be -s and your fourth argument should be the website URL (ex. https://google.com). If you'd like to pass a local file (ex. sample.html), the relative path to your local file should be the third argument, and your fourth argument should be empty.

Reading Logs

Each run should add lines to the output.txt log file in this directory. The top of each run should be headed by the browser it was run on (ex. ==== Safari).

Troubleshooting

You may need to give AppleScript / Terminal permission to synthesize key presses. You should be prompted to do this on the first run, if necessary. You can change these settings in System Preferences > Accessibility > Keyboard.

voiceover-tester's People

Contributors

mreschenberg avatar

Watchers

James Cloos avatar Marco Zehe avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.