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

Method get_escaped_path

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

Source from the content-addressed store, hash-verified

1519 }
1520
1521 fn get_escaped_path(&self, string_path: String) -> String {
1522 let mut escaped_path = string_path.clone();
1523 let path = Path::new(&string_path);
1524
1525 if path.exists() {
1526 escaped_path = self.canonicalize_path(path.to_path_buf());
1527 }
1528 if !string_path.eq(&escaped_path) {
1529 self.get_logger().trace(format!(
1530 "Path {} has been escaped to {}",
1531 string_path, escaped_path
1532 ));
1533 }
1534 escaped_path
1535 }
1536
1537 fn get_proxy(&self) -> &str {
1538 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