Svitlana
Svitlana

Reputation: 93

How to Handle SSL Certificate in karateUI driver?

When I open my resource, I am faced with notification "Your connection is not private".screen with the notification Is there a way to disable the verification of the server certificate in the browser or specify the desired trusted certificate through configuring the karate driver? Please, provide the solution for configuration the driver for overcome this notification.

Upvotes: 4

Views: 685

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58088

This is helpful feedback. Can you see if adding this command-line flag helps: --ignore-certificate-errors.

Refer addOptions in the documentation: https://github.com/intuit/karate/tree/develop/karate-core#configure-driver

Else it would be great if you provide a way to replicate and submit an issue: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

This will also work for other chrome options such as --disable-notifications.

Please also see these threads:

a) https://github.com/intuit/karate/issues/1134#issuecomment-638990087 b) https://github.com/intuit/karate/issues/1228

Upvotes: 2

Related Questions