Skip to content

Instantly share code, notes, and snippets.

@patrickarlt
Last active January 23, 2018 17:12
Show Gist options
  • Save patrickarlt/931b129598703eed4dda to your computer and use it in GitHub Desktop.
Save patrickarlt/931b129598703eed4dda to your computer and use it in GitHub Desktop.
Browser testing with Tape, Selenium and Webdriver IO.
import webdriverio from 'webdriverio';
import test from 'tape';
var browser = webdriverio.remote({
desiredCapabilities: {
browserName: 'chrome'
}
});
test('should visit DuckDuckGo', function (t) {
t.plan(1);
browser.init()
.url('https://duckduckgo.com/')
.getTitle().then(function (title) {
t.equal(title, "DuckDuckGo");
})
.end();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment