File tree 1 file changed +6
-0
lines changed
java/client/src/org/openqa/selenium/chrome
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 19
19
20
20
import static com .google .common .base .Preconditions .checkArgument ;
21
21
import static com .google .common .base .Preconditions .checkNotNull ;
22
+ import static org .openqa .selenium .remote .CapabilityType .ACCEPT_INSECURE_CERTS ;
22
23
import static org .openqa .selenium .remote .CapabilityType .PAGE_LOAD_STRATEGY ;
23
24
import static org .openqa .selenium .remote .CapabilityType .UNEXPECTED_ALERT_BEHAVIOUR ;
24
25
import static org .openqa .selenium .remote .CapabilityType .UNHANDLED_PROMPT_BEHAVIOUR ;
@@ -221,6 +222,11 @@ public ChromeOptions setUnhandledPromptBehaviour(UnexpectedAlertBehaviour behavi
221
222
return this ;
222
223
}
223
224
225
+ public ChromeOptions setAcceptInsecureCerts (boolean acceptInsecureCerts ) {
226
+ setCapability (ACCEPT_INSECURE_CERTS , acceptInsecureCerts );
227
+ return this ;
228
+ }
229
+
224
230
public ChromeOptions setHeadless (boolean headless ) {
225
231
args .remove ("--headless" );
226
232
if (headless ) {
You can’t perform that action at this time.
0 commit comments