Skip to content

Instantly share code, notes, and snippets.

@soulgalore soulgalore/safari.js
Last active Aug 13, 2019

Embed
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()
.forBrowser('safari')
.withCapabilities(caps)
.build();
try {
await driver.get('https://www.apple.com');
} finally {
await driver.quit();
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.