2016-04-07 9 views
0

Ich versuche, Android-Anwendung mit APPIUM zu automatisieren, aber es ist nicht in der Lage, Kontext zu Web-Ansicht zu wechseln. Ich habe herausgefunden, dass die Aktivität mit der Webansicht Prozessattribut hat, und ich denke, das verursacht das Problem. Um es zu beweisen, habe ich einfache Apps erstellt. Einer hat Prozessattribut, der andere nicht.Appium Switching Kontext Web-Ansicht

I APPIUM GUI 1.4.13 und Chrom-Treiber 2.21

Kann jemand raten bin mit?

Das Versagen Protokoll:

info: Chromedriver: Changed state to 'stopped' 

error: Chromedriver: Chromedriver exited unexpectedly with code null, signal SIGTERM 

warn: Chromedriver for context WEBVIEW_com.linecorp.appiumwebviewsample:account stopped unexpectedly 
warn: Chromedriver quit unexpectedly, but it wasn't the active context, ignoring 

error: Chromedriver: Error: An error occurred (Original error: chrome not reachable 
    (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.11.4 x86_64)) 
    at JWProxy.command$ (lib/proxy.js:149:15) 
    at tryCatch (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:67:40) 
    at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:294:22) 
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:100:21) 
    at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-chromedriver/node_modules/babel-runtime/regenerator/runtime.js:136:37) 
    at bound (domain.js:254:14) 
    at GeneratorFunctionPrototype.runBound (domain.js:267:12) 
    at run (/Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-chromedriver/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:89:39) 
    at /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-chromedriver/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js:100:28 
    at process._tickDomainCallback (node.js:381:11) 
{ [Error: An error occurred (Original error: chrome not reachable 
    (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.11.4 x86_64))] 
    status: 100, 
    value: { message: 'chrome not reachable\n (Driver info: chromedriver=2.21.371459 (36d3d07f660ff2bc1bf28a75d1cdabed0983e7c4),platform=Mac OS X 10.11.4 x86_64)' }, 
    httpCode: 200 } 
+0

scheint ein anderer von appium Vs chrome-driver issue zu sein – nullpointer

Antwort

0

ich die ähnliche Meldung finden konnte, wenn App-Paket gewünschte Fähigkeit nicht gesetzt ist.
Verwenden Sie com.android.chrome als appPackage?

+0

Ich setze es als meine Android-App-Paket. Soll ich es als Chrom einstellen? –

+0

Probieren Sie das appPackage als com.android.chrome – hemanto

+0

hat nicht funktioniert ..... –