mirror of
https://github.com/appium/appium.git
synced 2026-01-14 06:10:01 -06:00
* chore(package): update eslint-config-appium to version 4.0.1 * chore: fix linting * chore: rebase and done
25 lines
696 B
JavaScript
25 lines
696 B
JavaScript
const webdriverio = require('webdriverio');
|
|
const androidOptions = require('../../helpers/caps').androidWebOptions;
|
|
const assert = require('chai').assert;
|
|
|
|
describe('Create Chrome web session', function () {
|
|
let client;
|
|
|
|
before(async function () {
|
|
client = await webdriverio.remote(androidOptions);
|
|
});
|
|
|
|
after(async function () {
|
|
return await client.deleteSession();
|
|
});
|
|
|
|
it('should create and destroy Android browser session', async function () {
|
|
// Navigate to google.com
|
|
const client = await webdriverio.remote(androidOptions);
|
|
await client.url('https://www.google.com');
|
|
|
|
const title = await client.getTitle();
|
|
assert.equal(title, 'Google');
|
|
});
|
|
});
|