Skip to content

Commit

Permalink
[rust] Bug-fix: store browser path when found in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Aug 9, 2023
1 parent bd6a71e commit fb40ce3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,12 @@ pub trait SeleniumManager {
.trace(format!("Checking {} in PATH", browser_name));
let browser_in_path = self.find_browser_in_path();
if let Some(path) = &browser_in_path {
let canon_browser_path = self.canonicalize_path(path.clone());
self.get_logger().debug(format!(
"Found {} in PATH: {}",
browser_name,
path.display()
browser_name, &canon_browser_path
));
self.set_browser_path(canon_browser_path);
} else {
self.get_logger()
.debug(format!("{} not found in PATH", browser_name));
Expand Down

0 comments on commit fb40ce3

Please sign in to comment.