Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Danielfenghk/835601acf226c1dc535744349f02e3c4 to your computer and use it in GitHub Desktop.
Save Danielfenghk/835601acf226c1dc535744349f02e3c4 to your computer and use it in GitHub Desktop.
require('chromedriver');
const webdriver = require('selenium-webdriver');
describe('selenium test - part 1', () => {
it('should be able to start a website', async () => {
let driver = new webdriver.Builder()
.forBrowser('chrome')
.build();
driver.manage().window().maximize();
await driver.navigate().to('https://techblog.polteq.com/testshop/index.php');
driver.sleep(5000);
await driver.quit();
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment