设置autoWebview:'true'在protractor配置文件导致系统注销,ubuntu 16.4
这是我的配置文件:
exports.config = {
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: ['demo.js'],
capabilities: {
platformName : 'android',
platformVersion : '4.4.2',
deviceName: 'PNV4PN4LUORWSCRO',
directConnect: true,
browserName: "android",
autoWebview: ' true',
app: '/path/abc.apk',
appPackage: 'xyz',
appActivity: '.MainActivity',
newCommandTimeout: 140,
autoWebviewTimeout: 10000,
fulReset: true
},
baseUrl: 'http://10.0.2.2:8000',
allScriptsTimeout: 22000,
onPrepare: function () {
var wd = require('wd'),
protractor = require('protractor'),
wdBridge = require('wd-bridge')(protractor, wd);
wdBridge.initFromProtractor(exports.config);
}
};
Run Code Online (Sandbox Code Playgroud)
如果我没有设置autoWebview:'true',那么我遇到问题:
[21:38:48] I/hosted - Using the selenium server at http://localhost:4723 /wd/hub
[21:38:48] I/launcher - Running 1 instances of …
Run Code Online (Sandbox Code Playgroud)