Create session and basic interactions samples (#9907)

* Add apps; add create session test
* Android create session tests
* iOS basic interactions test
* Basic web session tests (iOS and Android)
This commit is contained in:
Dan Graham
2018-01-04 13:48:24 -08:00
committed by GitHub
parent fd24eb9853
commit 061e264800
21 changed files with 281 additions and 1 deletions
@@ -0,0 +1,28 @@
import wd from 'wd';
import chai from 'chai';
import { iosCaps, serverConfig } from '../helpers/caps';
const {assert} = chai;
describe('Create Safari session', function () {
it('should create and destroy IOS Safari session', async function () {
// Connect to Appium server
const driver = await wd.promiseChainRemote(serverConfig);
// Start the session
await driver.init({
...iosCaps,
browserName: 'Safari'
});
// Navigate to google.com
await driver.get('https://www.google.com');
// Test that it was successful by checking the document title
const pageTitle = await driver.title();
assert.equal(pageTitle, 'Google');
// Quit the session
await driver.quit();
});
});