[java] Fixing logic of isInternetExplorer check
@@ -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) {
