File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
java/client/test/org/openqa/selenium/testing Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 23
23
24
24
window . onload = function ( ) {
25
25
// Super dumb browser detection
26
- var isIE = window . navigator . userAgent . search ( 'MSIE' ) != - 1 ;
26
+ var isIE = window . navigator . userAgent . search ( 'MSIE' ) != - 1
27
+ || window . navigator . userAgent . search ( 'Trident' ) != - 1 ;
27
28
28
29
var editFrame = document . getElementById ( 'editFrame' ) . contentWindow ;
29
30
setKeypressHandler ( editFrame . document , printEventData ) ;
Original file line number Diff line number Diff line change @@ -56,8 +56,9 @@ public static boolean isFirefox(WebDriver driver) {
56
56
}
57
57
58
58
public static boolean isInternetExplorer (WebDriver driver ) {
59
+ String userAgent = getUserAgent (driver );
59
60
return !(driver instanceof HtmlUnitDriver )
60
- && getUserAgent ( driver ) .contains ("MSIE" );
61
+ && ( userAgent .contains ("MSIE" ) || userAgent . contains ( "Trident" ) );
61
62
}
62
63
63
64
public static boolean isIe6 (WebDriver driver ) {
You can’t perform that action at this time.
0 commit comments