Impostazione autoWebview: 'true' al file di configurazione goniometro causando la disconnessione del sistema, Ubuntu 16,4Impostazione autoWebview: 'true' al file di config.js goniometro causando macchina logout, ubuntu 16.04
Questo è il mio file di configurazione:
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);
}
};
Se io non pongo autoWebview: 'true', allora io sono sempre al di sotto di problema:
[21:38:48] I/hosted - Using the selenium server at http://localhost:4723 /wd/hub
[21:38:48] I/launcher - Running 1 instances of WebDriver
[21:39:04] E/runner - Unable to start a WebDriver session.
E/launcher - Error: WebDriverError: Not yet implemented. Please help us: http://appium.io/get-involved.html
at WebDriverError (/home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/error.js:27:5)
at Object.checkLegacyResponse (/home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/error.js:580:13)
at /home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver.js:360:15
at Promise.invokeCallback_ (/home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1329:14)
at TaskQueue.execute_ (/home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2790:14)
at TaskQueue.executeNext_ (/home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2773:21)
at asyncRun (/home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2652:27)
at /home/dilip/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:639:7
at process._tickCallback (internal/process/next_tick.js:103:7)
[15:01:09] E/launcher - Process exited with error code 100
E sotto è spec.js f ile content:
describe('Protractor Demo App', function() { var firstNumber =element(by.model('xyz:id/data.email')); var secondNumber = element(by.model('xyz:id/data.password')); it('Open login page', function() { firstNumber.sendKeys("dilip"); secondNumber.sendKeys(7668);
});
Per favore, qualcuno mi aiuti.
potresti separare i due casi (con e senza 'autoWebView') con i dettagli. – nullpointer
Voglio dire che quando metto "autoWebview: 'true'," nel mio file config.js per il goniometro ed eseguo questo file, il mio sistema si disconnette durante l'esecuzione dello script. –
Questo è il mio contenuto "demo_spec.js" file: descrivere ('goniometro Demo App', function() {var firstNumber = elemento (by.model ('xyz: id/data.email')); var secondNumber = element (by.model ('xyz: id/data.parola d'ordine')); esso ('pagina di login Open', function() { firstNumber.sendKeys ("Dilip"); secondNumber.sendKeys (7668);. // aspettarsi (firstNumber.getAttribute ('valore')) toEqual ('[email protected]$ //expect(browser.getCurrentUrl()).toEqual('http://localhost:8080/nextgen-ap$ });} ); –