Skip to content

Instantly share code, notes, and snippets.

Last active January 26, 2022 23:58
What would you like to do?
Run Safari on iOS using Selenium
const { Builder, Capabilities } = require('selenium-webdriver');
(async function example() {
const caps = Capabilities.safari();
caps.set('platformName', 'iOS');
const driver = await new Builder()
try {
await driver.get('');
} finally {
await driver.quit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment