I encountered the same before. so I already gave up util they have a better build.
Hi friends
just rebuilt the apk by adding below line to enable the Webview in the apk .
webview.setEnabled(true);
Now,it will list both Native and WebView for HybridAndroid App
hi please tell me clearly where i should modify, which file in the app and location
please help me ASAP
hi sorry for late rply.
WebView.SetWebContentsDebuggingEnable(true); in the CordovaWebview.java file .
Hi Antony,
The above property mentioned, the app which I am automating is using third party’s web view HTML page which is used for payment options, so this property setting true or false in not under our control, this is what the statement I heard by my Dev team, could you please suggests any other way to do it, I have completely blocked with this.
hi githubramakrishnan,
i am also facing same problem. but i am using ionic framework how can i enable WebView.SetWebContentsDebuggingEnable(true); there is no java like CordovaWebview.java file .
hi githubramakrishnan can you explain me how to add the single line code in apk file(ionic hybrid app)
Hi Sumumar_m did you got any update on it or can anyone please help me how can i get WEBVIEW for application implemented in Ionic framework in crosswalk I tried the patch but even that time it is not able to identifies element using xpath.
I am using APPIUM -v 1.5.3
Tried Patch given in “https://github.com/ITKarel/ChromeDriver”
ISSUE:
Still not able to view Webview, I am able to click on ID (With APPIUM version 1.6 without patch )as ID is also there in NATIVE_APP but while trying to click using xPath I am not able to do that as I am not able to get WEBVIEW for that application using APPIUM.
Appreciate your help
Hi Guys
Can you please guide how to set webview enabled=true in IONIC2 Framewrok from developer side. To get everywhere web view whenever context view change from automation in running time.
can you anyone help on this appium inspector keep on loading
ib\commands\general.js:107:7)
[AndroidUiautomator2Driver@efd6 (ba7e1807)] at AndroidUiautomator2Driver.getWindowRect (C:\Users\vinit.appium\node_modules\appium-uiautomator2-driver\lib\commands\general.js:117:29)
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/window/rect 500 17 ms - 938
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/source
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Driver proxy active, passing request on via HTTP proxy
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Matched ‘/session/ba7e1807-98af-4b91-8fac-c90e2f59f751/source’ to command name ‘getPageSource’
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Proxying [GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/source] to [GET http://127.0.0.1:8200/session/12a03e35-9c01-4a59-8a75-789278fec630/source] with no body
[AndroidUiautomator2Driver@efd6 (ba7e1807)] socket hang up
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/source 400 15 ms - 1123
[HTTP]
[Instrumentation] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 200 5 ms - 42
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 8 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 5 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 5 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 6 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 4 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 4 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 6 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 6 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 5 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 5 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 5 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 5 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 4 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 2 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 2 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 1 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 1 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 4 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 4 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 3 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 4 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 5 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 4 ms - -
[HTTP]
[HTTP] --> GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts
[HTTP] {}
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Calling AppiumDriver.getTimeouts() with args: [“ba7e1807-98af-4b91-8fac-c90e2f59f751”]
[AndroidUiautomator2Driver@efd6 (ba7e1807)] Responding to client with driver.getTimeouts() result: {“command”:3600000,“implicit”:0}
[HTTP] <-- GET /session/ba7e1807-98af-4b91-8fac-c90e2f59f751/timeouts 304 2 ms - -
please create a new thread, I know. 1 year old ticket, but people need to create fresh issues and not assume their issue is anywhere near related to the same symptoms as a 6 year old thread.