Install https://github.com/vvo/selenium-standalone and start it.
Then run the test script. babel-node test.js.
Install https://github.com/vvo/selenium-standalone and start it.
Then run the test script. babel-node test.js.
| 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(); | |
| }); |