Skip to content

Commit

Permalink
[rust] Avoid WARN trace for iexplorer version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Apr 21, 2023
1 parent cbcc6b3 commit b579892
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ pub trait SeleniumManager {
None => {
if self.is_browser_version_unstable() {
return Err(format!("Browser version '{browser_version}' not found"));
} else {
} else if !self.is_iexplorer() {
self.get_logger().warn(format!(
"The version of {} cannot be detected. Trying with latest driver version",
self.get_browser_name()
Expand Down Expand Up @@ -296,6 +296,10 @@ pub trait SeleniumManager {
self.get_browser_name().contains(SAFARI_NAME)
}

fn is_iexplorer(&self) -> bool {
self.get_browser_name().eq(IE_NAMES[0])
}

fn is_browser_version_unstable(&self) -> bool {
let browser_version = self.get_browser_version();
browser_version.eq_ignore_ascii_case(BETA)
Expand Down

0 comments on commit b579892

Please sign in to comment.