Created
July 20, 2018 01:49
-
-
Save tobychung/243a50c6acf4ab3ebcc1c0b88cc8b395 to your computer and use it in GitHub Desktop.
This file contains 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
var assert = require('assert'); | |
describe('webdriver.io page', function() { | |
it('should have the right title', function () { | |
browser.url('http://webdriver.io'); | |
var title = browser.getTitle(); | |
assert.equal(title, 'WebdriverIO - Selenium 2.0 javascript bindings for nodejs'); | |
}); | |
}); | |
// 寫法解釋 ----------------------------------------- | |
// unit test 用到的組件 | |
var assert = require('assert'); | |
describe('webdriver.io page', function() { | |
it('should have the right title', function () { | |
browser.url('http://webdriver.io'); | |
var title = browser.getTitle(); | |
assert.equal(title, 'WebdriverIO - Selenium 2.0 javascript bindings for nodejs'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment