mirror of
https://github.com/appium/appium.git
synced 2026-04-26 21:45:58 -05:00
Bring Sample Code into master (#10880)
* Sample code stub (#9887) * WD tests * WD sample code (#9918) * WebdriverIO sample code (#10166) * Ruby sample code (#10331) * PHP Sample Code (#10209) * Basic Android java test * Java sample code (#10427) * Sample code (#10834) * Sample code stub (#9887) * WD tests * WD sample code (#9918) * WebdriverIO sample code (#10166) * Ruby sample code (#10331) * PHP Sample Code (#10209) * Basic Android java test * Java sample code (#10427) * fixed WDIO test * Update .npmignore
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import wd from 'wd';
|
||||
import chai from 'chai';
|
||||
import { iosCaps, serverConfig } from '../helpers/caps';
|
||||
|
||||
const {assert} = chai;
|
||||
|
||||
describe('Create session', function () {
|
||||
it('should create and destroy IOS sessions', async function () {
|
||||
// Connect to Appium server
|
||||
const driver = await wd.promiseChainRemote(serverConfig);
|
||||
|
||||
// Start the session
|
||||
await driver.init({
|
||||
...iosCaps,
|
||||
app: require('../helpers/apps').iosTestApp
|
||||
});
|
||||
|
||||
// Check that the XCUIElementTypeApplication was what we expect it to be
|
||||
const applicationElement = await driver.elementByClassName('XCUIElementTypeApplication');
|
||||
const applicationName = await applicationElement.getAttribute('name');
|
||||
assert.equal(applicationName, 'TestApp');
|
||||
|
||||
// Quit the session
|
||||
await driver.quit();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user