Skip to content

Instantly share code, notes, and snippets.

@ckundo
Last active March 26, 2022 22:06
Show Gist options
  • Save ckundo/9a577f9ce0f67e39b6a8c97e107fe74f to your computer and use it in GitHub Desktop.
Save ckundo/9a577f9ce0f67e39b6a8c97e107fe74f to your computer and use it in GitHub Desktop.
const page = await browser.newPage();
await page.goto('https://www.example.com', { waitUntil: "domcontentloaded" });
const voiceOver = new VoiceOver();
await voiceOver.launch();
await voiceOver.rotor({ menu: "Window Spots", find: "conten" });
await voiceOver.execute(startInteracting);
const output = await voiceOver.seek({ text: 'link More information...' });
await voiceOver.quit();
await browser.close();
expect(output).toContain('link More information...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment