Created
November 5, 2017 00:01
-
-
Save erik-haartmans/fb84d42193a54ca8f8e62a2185860b49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('chromedriver'); | |
const webdriver = require('selenium-webdriver'); | |
describe('selenium test - part 3', () => { | |
let driver; | |
beforeEach(async () => { | |
driver = new webdriver.Builder() | |
.forBrowser('chrome') | |
.build(); | |
driver.manage().window().maximize(); | |
await driver.navigate().to('https://techblog.polteq.com/testshop/index.php'); | |
}) | |
afterEach(async () => { | |
await driver.quit(); | |
}) | |
it('should be able to do the first test', async () => { | |
// first test here | |
}) | |
it('should be able to do the second test', async () => { | |
// second test here | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment