Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error:


#1

When trying to navigate to another URL by clicking on button getting below error,I have changed the context to webview and done all the necessary steps which are mentioned online ,but still getting below error …

[W3C (2dd2fbcc)] Driver proxy active, passing request on via HTTP proxy
[debug] [WD Proxy] Matched ‘/wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element] to [POST http://127.0.0.1:8000/wd/hub/session/595c3e9a3863f3bf99741f8b17922735/element] with body: {“using”:“xpath”,“value”:"/html/body/ion-app/ng-component/ion-nav/page-eula/ion-footer/ion-row/ion-col[2]/button"}
[debug] [WD Proxy] Got response with status 200: {“sessionId”:“595c3e9a3863f3bf99741f8b17922735”,“status”:0,“value”:{“ELEMENT”:“0.8008636472322805-3”}}
[WD Proxy] Replacing sessionId 595c3e9a3863f3bf99741f8b17922735 with 2dd2fbcc-edc9-4221-9e2b-9bb97464e211
[HTTP] <-- POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element 200 78 ms - 106
[HTTP]
[HTTP] --> POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element/0.8008636472322805-3/click
[HTTP] {“id”:“0.8008636472322805-3”}
[W3C (2dd2fbcc)] Driver proxy active, passing request on via HTTP proxy
[debug] [WD Proxy] Matched ‘/wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element/0.8008636472322805-3/click’ to command name ‘click’
[debug] [WD Proxy] Proxying [POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element/0.8008636472322805-3/click] to [POST http://127.0.0.1:8000/wd/hub/session/595c3e9a3863f3bf99741f8b17922735/element/0.8008636472322805-3/click] with body: {“id”:“0.8008636472322805-3”}
[debug] [WD Proxy] Got response with status 200: {“sessionId”:“595c3e9a3863f3bf99741f8b17922735”,“status”:0,“value”:null}
[WD Proxy] Replacing sessionId 595c3e9a3863f3bf99741f8b17922735 with 2dd2fbcc-edc9-4221-9e2b-9bb97464e211
[HTTP] <-- POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element/0.8008636472322805-3/click 200 386 ms - 76
[HTTP]
[HTTP] --> POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/context
[HTTP] {“name”:“WEBVIEW_com.telstra.health.doctorsapp.demo”}
[debug] [W3C (2dd2fbcc)] Calling AppiumDriver.setContext() with args: [“WEBVIEW_com.telstra.health.doctorsapp.demo”,“2dd2fbcc-edc9-4221-9e2b-9bb97464e211”]
[debug] [W3C (2dd2fbcc)] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/context 200 5 ms - 14
[HTTP]
[HTTP] --> GET /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/url
[HTTP] {}
[W3C (2dd2fbcc)] Driver proxy active, passing request on via HTTP proxy
[debug] [WD Proxy] Matched ‘/wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/url’ to command name ‘getUrl’
[debug] [WD Proxy] Proxying [GET /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/url] to [GET http://127.0.0.1:8000/wd/hub/session/595c3e9a3863f3bf99741f8b17922735/url] with body: {}
[debug] [WD Proxy] Got response with status 200: “{“sessionId”:“595c3e9a3863f3bf99741f8b17922735”,“status”:0,“value”:“file:///android_asset/www/index.html#/eula”}”
[WD Proxy] Replacing sessionId 595c3e9a3863f3bf99741f8b17922735 with 2dd2fbcc-edc9-4221-9e2b-9bb97464e211
[HTTP] <-- GET /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/url 200 1814 ms - 116
[HTTP]
[HTTP] --> POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element
[HTTP] {“using”:“xpath”,“value”:"//[@id=“kc-login”]"}
[W3C (2dd2fbcc)] Driver proxy active, passing request on via HTTP proxy
[debug] [WD Proxy] Matched ‘/wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element’ to command name ‘findElement’
[debug] [WD Proxy] Proxying [POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element] to [POST http://127.0.0.1:8000/wd/hub/session/595c3e9a3863f3bf99741f8b17922735/element] with body: {“using”:“xpath”,“value”:"//
[@id=“kc-login”]"}
[debug] [WD Proxy] Got response with status 200: {“sessionId”:“595c3e9a3863f3bf99741f8b17922735”,“status”:7,“value”:{“message”:“no such element: Unable to locate element: {“method”:“xpath”,“selector”:”//[@id=“kc-login”]"}\n (Session info: chrome=69.0.3497.100)\n (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90),platform=Windows NT 10.0.17134 x86_64)"}}
[WD Proxy] Got an unexpected response: {“sessionId”:“595c3e9a3863f3bf99741f8b17922735”,“status”:7,“value”:{“message”:“no such element: Unable to locate element: {“method”:“xpath”,“selector”:”//
[@id=“kc-login”]"}\n (Session info: chrome=69.0.3497.100)\n (Driver info: chromedriver=2.44.609538 (b655c5a60b0b544917107a59d4153d…
[debug] [W3C (2dd2fbcc)] Encountered internal error running command: ProxyRequestError: Could not proxy command to remote server. Original error: The request to /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element has failed
[debug] [W3C (2dd2fbcc)] at JWProxy.proxy (C:\Users\Sachin.ahlawat\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:181:13)
[debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
[HTTP] <-- POST /wd/hub/session/2dd2fbcc-edc9-4221-9e2b-9bb97464e211/element 404 806 ms - 1175