Slide 28
Slide 28 text
テスト自動化環境 - LambdaTest( code 2/3 )
// テスト環境の設定
const capabilities = {
platform: 'windows 10',
browserName: 'chrome',
version: '67.0',
resolution: '1280x800',
network: true,
visual: true,
console: true,
video: true,
name: 'Test 1',
build: 'NodeJS build'
};
// 接続先の設定
const gridUrl = 'https://'
+ USERNAME
+ ':' + KEY
+ '@' + GRID_HOST;
// driverの設定
const driver = new webdriver
.Builder()
.usingServer(gridUrl)
.withCapabilities(capabilities)
.build();