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

Method get_escaped_path

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

Source from the content-addressed store, hash-verified

1537 }
1538
1539 fn get_escaped_path(&self, string_path: String) -> String {
1540 let mut escaped_path = string_path.clone();
1541 let path = Path::new(&string_path);
1542
1543 if path.exists() {
1544 escaped_path = self.canonicalize_path(path.to_path_buf());
1545 }
1546 if !string_path.eq(&escaped_path) {
1547 self.get_logger().trace(format!(
1548 "Path {} has been escaped to {}",
1549 string_path, escaped_path
1550 ));
1551 }
1552 escaped_path
1553 }
1554
1555 fn get_proxy(&self) -> &str {
1556 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

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