WebDriverIOで⾃動化する
const assert = require('assert')
describe('webdriver.io page', () => {
it('should have the right title', () => {
browser.url('https://webdriver.io')
const title = browser.getTitle()
assert.strictEqual(title, 'WebdriverIO · Next-gen browser automation test framework for Node.js')
})
})
# テストグループ名
# テストタイトル
# WebDriver.io のページを表⽰
# ブラウザのタイトルバーの⽂字列を title変数に⼊れる
# title変数の⽂字列が指定の⽂字列と同じか確認
53