File tree 2 files changed +8
-3
lines changed
java/client/test/org/openqa/selenium
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -91,14 +91,19 @@ public void testEnteringHebrewTextFromRightToLeft() {
91
91
92
92
@ Test
93
93
@ Ignore (
94
- value = {MARIONETTE , CHROME },
94
+ value = {MARIONETTE , CHROME , OPERA },
95
95
reason = "MAIONETTE: not checked, "
96
96
+ "CHROME: ChromeDriver only supports characters in the BMP"
97
+ + "OPERA: doesn't work - see issue 5069"
97
98
)
98
99
public void testEnteringSupplementaryCharacters () {
99
100
assumeFalse ("IE: versions less thank 10 have issue 5069" ,
100
101
TestUtilities .isInternetExplorer (driver ) &&
101
102
TestUtilities .getIEVersion (driver ) < 10 );
103
+ assumeFalse ("FF: native events at linux broke it - see issue 5069" ,
104
+ TestUtilities .isFirefox (driver ) &&
105
+ TestUtilities .isNativeEventsEnabled (driver ) &&
106
+ TestUtilities .getEffectivePlatform ().is (Platform .LINUX ));
102
107
driver .get (pages .chinesePage );
103
108
104
109
String input = "" ;
@@ -114,6 +119,7 @@ public void testEnteringSupplementaryCharacters() {
114
119
assertEquals (input , el .getAttribute ("value" ));
115
120
}
116
121
122
+ @ NeedsFreshDriver
117
123
@ Test
118
124
@ Ignore (MARIONETTE )
119
125
public void testShouldBeAbleToReturnTheTextInAPage () {
Original file line number Diff line number Diff line change @@ -381,10 +381,8 @@ private BufferedImage getImage() {
381
381
byte [] imageData = screenshoter .getScreenshotAs (OutputType .BYTES );
382
382
assertTrue (imageData != null );
383
383
assertTrue (imageData .length > 0 );
384
- System .out .println ("Length -> " + imageData .length );
385
384
image = ImageIO .read (new ByteArrayInputStream (imageData ));
386
385
assertTrue (image != null );
387
- System .out .println ("Sizes -> " + image .getWidth () + "x" + image .getHeight ());
388
386
} catch (IOException e ) {
389
387
fail ("Image screenshot file is invalid: " + e .getMessage ());
390
388
}
@@ -517,6 +515,7 @@ private void saveImageToTmpFile(BufferedImage im) {
517
515
518
516
File outputfile = new File ( testName .getMethodName () + "_image.png" );
519
517
System .out .println ("Image file is at " + outputfile .getAbsolutePath ());
518
+ System .out .println ("Sizes -> " + im .getWidth () + "x" + im .getHeight ());
520
519
try {
521
520
ImageIO .write (im , "png" , outputfile );
522
521
} catch (IOException e ) {
You can’t perform that action at this time.
0 commit comments