Skip to content

Instantly share code, notes, and snippets.

@tobychung
Created July 20, 2018 01:49
Show Gist options
  • Save tobychung/243a50c6acf4ab3ebcc1c0b88cc8b395 to your computer and use it in GitHub Desktop.
Save tobychung/243a50c6acf4ab3ebcc1c0b88cc8b395 to your computer and use it in GitHub Desktop.
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