mirror of
https://github.com/appium/appium.git
synced 2026-01-14 06:10:01 -06:00
24 lines
685 B
JavaScript
24 lines
685 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
|
|
let client = await webdriverio.remote(iosOptions);
|
|
await client.url("https://www.google.com");
|
|
const title = await client.getTitle();
|
|
assert.equal(title, "Google");
|
|
});
|
|
});
|