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

Method get_escaped_path

rust/src/lib.rs:1550–1564  ·  view source on GitHub ↗
(&self, string_path: String)

Source from the content-addressed store, hash-verified

1548 }
1549
1550 fn get_escaped_path(&self, string_path: String) -> String {
1551 let mut escaped_path = string_path.clone();
1552 let path = Path::new(&string_path);
1553
1554 if path.exists() {
1555 escaped_path = self.canonicalize_path(path.to_path_buf());
1556 }
1557 if !string_path.eq(&escaped_path) {
1558 self.get_logger().trace(format!(
1559 "Path {} has been escaped to {}",
1560 string_path, escaped_path
1561 ));
1562 }
1563 escaped_path
1564 }
1565
1566 fn get_proxy(&self) -> &str {
1567 self.get_config().proxy.as_str()

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 4

existsMethod · 0.80
canonicalize_pathMethod · 0.80
traceMethod · 0.80
get_loggerMethod · 0.45