MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / set_insecure

Method set_insecure

rust/src/lib.rs:1598–1609  ·  view source on GitHub ↗
(&mut self, insecure: bool)

Source from the content-addressed store, hash-verified

1596 }
1597
1598 fn set_insecure(&mut self, insecure: bool) -> Result<(), Error> {
1599 if insecure && !self.is_insecure() {
1600 self.get_config_mut().insecure = true;
1601 self.reset_http_client();
1602 }
1603 if self.is_insecure() {
1604 self.get_logger().warn(
1605 "TLS certificate validation is disabled (insecure mode). Downloaded drivers and browsers cannot be verified",
1606 );
1607 }
1608 Ok(())
1609 }
1610
1611 fn get_http_client(&self) -> Result<&Client, Error> {
1612 if let Some(http_client) = self.get_http_client_cell().get() {

Callers 1

mainFunction · 0.80

Implementers 8

edge.rsrust/src/edge.rs
iexplorer.rsrust/src/iexplorer.rs
safaritp.rsrust/src/safaritp.rs
electron.rsrust/src/electron.rs
chrome.rsrust/src/chrome.rs
firefox.rsrust/src/firefox.rs
grid.rsrust/src/grid.rs
safari.rsrust/src/safari.rs

Calls 5

is_insecureMethod · 0.80
reset_http_clientMethod · 0.80
get_config_mutMethod · 0.45
warnMethod · 0.45
get_loggerMethod · 0.45

Tested by

no test coverage detected