mirror of
https://github.com/appium/appium.git
synced 2026-01-13 22:00:05 -06:00
* Lint and update JS wd sample code * Lint and update JS webdriverio sample code * Add JS sample code to greenkeeper
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");
|
|
});
|
|
});
|