Skip to content

Commit

Permalink
[rust] Enhance warning message when incorrect driver in PATH is detec…
Browse files Browse the repository at this point in the history
…ted (#12395)

Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
  • Loading branch information
bonigarcia and diemol committed Jul 21, 2023
1 parent 18eb3b1 commit 490de08
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rust/src/lib.rs
Expand Up @@ -360,12 +360,16 @@ pub trait SeleniumManager {
// If proper driver version is not the same as the driver in path, display warning
if !self.get_driver_version().is_empty() && !version.eq(self.get_driver_version()) {
self.get_logger().warn(format!(
"The {} version ({}) detected in PATH at {} might not be compatible with the detected {} version ({}); it is recommended to delete the driver and retry",
"The {} version ({}) detected in PATH at {} might not be compatible with the detected {} version ({}); currently, {} {} is recommended for {} {}.*, so it is advised to delete the driver in PATH and retry",
self.get_driver_name(),
version,
path,
self.get_browser_name(),
self.get_browser_version()
self.get_browser_version(),
self.get_driver_name(),
self.get_driver_version(),
self.get_browser_name(),
self.get_major_browser_version()
));
}
self.set_driver_version(version.to_string());
Expand Down

0 comments on commit 490de08

Please sign in to comment.