Skip to content

Commit

Permalink
Merge 5f6c133 into 00b6089
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia authored Aug 1, 2023
2 parents 00b6089 + 5f6c133 commit ab9414f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,14 @@ pub trait SeleniumManager {
// If driver is in path, always use it
if let (Some(version), Some(path)) = (&driver_in_path_version, &driver_in_path) {
// 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()) {
let major_version = self.get_major_version(version)?;
if !self.get_driver_version().is_empty()
&& !major_version.eq(&self.get_major_browser_version())
{
self.get_logger().warn(format!(
"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",
"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,
Expand Down

0 comments on commit ab9414f

Please sign in to comment.