Using --ignore-certificate-errors option with WebView in Android hybrid app

110 views
Skip to first unread message

srikant...@gmail.com

unread,
Jul 2, 2015, 9:26:53 AM7/2/15
to chromedri...@googlegroups.com
Hi,

I am running tests on Android hybrid app using Appium (Devices have Android version > 4.4) on our test environment.
While navigating to a particular page in webview, there are few HTTPS GET request being made to a server with invalid SSL certificate.
I checked via developer tools, the webview is blocking these requests.

This is causing Chromedriver to hang and finally I get below error on the console log :
"info: Chromedriver: [STDERR] [666.306][SEVERE]: Timed out receiving message from renderer: 289.699"

When I run the same test on Chrome browser on devices via Appium, it works perfectly fine.

As per my understanding, --ignore-certificate-errors switch is passed to Chrome browser by default when running a test via Chromedriver.

Will setting --ignore-certificate-errors option work with webview?
Do I need to explicity pass this option while running on hybrid app OR it will be set by default?

Note :
With Appium release 1.4.6, it has added ability to pass chromeOptions as Capability. I have tried to explicitly set --ignore-certificate-errors as chromeOption while creating a new Appium session, but am still facing this issue.

Please let me know if more information is required.

Reply all
Reply to author
Forward
0 new messages