Skip to content

Commit

Permalink
docs: update runSelenium demo
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored and LarsDenBakker committed Sep 5, 2021
1 parent 33e6257 commit b80624c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions packages/test-runner/demo/runSelenium.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import selenium from 'selenium-standalone';

console.log('Installing Selenium...');

export function runSelenium() {
selenium.install(err => {
if (err) {
throw err;
}
console.log('Finished installing Selenium, starting...');
export async function runSelenium() {
await selenium.install({
drivers: {
chrome: { version: 'latest' },
firefox: { version: 'latest' },
},
});

selenium.start((err, server) => {
if (err) {
throw err;
}
console.log('Selenium started');
});
return await selenium.start({
drivers: {
chrome: { version: 'latest' },
firefox: { version: 'latest' },
},
});
}

0 comments on commit b80624c

Please sign in to comment.