Skip to content

Commit fb40ce3

Browse files
committed
[rust] Bug-fix: store browser path when found in PATH
1 parent bd6a71e commit fb40ce3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rust/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,12 @@ pub trait SeleniumManager {
212212
.trace(format!("Checking {} in PATH", browser_name));
213213
let browser_in_path = self.find_browser_in_path();
214214
if let Some(path) = &browser_in_path {
215+
let canon_browser_path = self.canonicalize_path(path.clone());
215216
self.get_logger().debug(format!(
216217
"Found {} in PATH: {}",
217-
browser_name,
218-
path.display()
218+
browser_name, &canon_browser_path
219219
));
220+
self.set_browser_path(canon_browser_path);
220221
} else {
221222
self.get_logger()
222223
.debug(format!("{} not found in PATH", browser_name));

0 commit comments

Comments
 (0)