Skip to content

Commit

Permalink
[java] Fixing logic of isInternetExplorer check
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jul 18, 2020
1 parent 4de0e37 commit 5e307bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static boolean isFirefox(WebDriver driver) {

public static boolean isInternetExplorer(WebDriver driver) {
String userAgent = getUserAgent(driver);
return userAgent != null && userAgent.contains("MSIE") || userAgent.contains("Trident");
return userAgent != null && (userAgent.contains("MSIE") || userAgent.contains("Trident"));
}

public static boolean isChrome(WebDriver driver) {
Expand Down

0 comments on commit 5e307bb

Please sign in to comment.