-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor-appium.conf.js
48 lines (41 loc) · 1.54 KB
/
protractor-appium.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var path = require("path");
//var appium = require('appium');
var protractor = require('protractor');
exports.config = {
// Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
//framework: 'jasmine2',
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: [
'protractor-spec.js'
],
// Reference: https://github.com/appium/sample-code/blob/master/sample-code/examples/node/helpers/caps.js
capabilities: {
//autoWebview: true, // timeout: timed out after 30000 msec waiting for spec to complete
autoWebview: true, // WEBVIEW_1
//autoWebviewTimeout: 10,
browserName: '', // Must be blank (or non-existent?) to use 'app'
"appium-version": '1.4.1',
platformName: 'iOS',
platformVersion: '9.0',
//deviceName: 'iPhone Simulator',
deviceName: 'iPhone 6s',
app: path.resolve("platforms/ios/build/emulator/appiumone.app")
},
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true,
//defaultTimeoutInterval: 60000 // 30000 (30 seconds)
},
baseUrl: 'http://localhost:8100',
// Configuring wd in onPrepare
// wdBridge helps to bridge wd driver with other selenium clients
// See https://github.com/sebv/wd-bridge/blob/master/README.md
onPrepare: function () {
console.log("onPrepare()");
var wd = require('wd'),
protractor = require('protractor'),
wdBridge = require('wd-bridge')(protractor, wd);
wdBridge.initFromProtractor(exports.config);
console.log("onPrepare() done");
}
};