23
23
import static org .junit .Assert .assertThat ;
24
24
import static org .junit .Assume .assumeFalse ;
25
25
import static org .openqa .selenium .Platform .ANDROID ;
26
+ import static org .openqa .selenium .Platform .LINUX ;
26
27
import static org .openqa .selenium .testing .Ignore .Driver .MARIONETTE ;
27
28
import static org .openqa .selenium .testing .Ignore .Driver .PHANTOMJS ;
28
29
import static org .openqa .selenium .testing .Ignore .Driver .SAFARI ;
@@ -58,6 +59,9 @@ public void testSetsTheSizeOfTheCurrentWindow() {
58
59
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
59
60
// though others aren't defined in org.openqa.selenium.Platform).
60
61
assumeFalse (TestUtilities .getEffectivePlatform (driver ).is (ANDROID ));
62
+ assumeFalse ("https://code.google.com/p/chromedriver/issues/detail?id=1129" ,
63
+ SauceDriver .shouldUseSauce () && TestUtilities .isChrome (driver )
64
+ && TestUtilities .getEffectivePlatform (driver ).is (LINUX ));
61
65
// resize relative to the initial size, since we don't know what it is
62
66
changeSizeBy (-20 , -20 );
63
67
}
@@ -68,6 +72,9 @@ public void testSetsTheSizeOfTheCurrentWindowFromFrame() {
68
72
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
69
73
// though others aren't defined in org.openqa.selenium.Platform).
70
74
assumeFalse (TestUtilities .getEffectivePlatform (driver ).is (ANDROID ));
75
+ assumeFalse ("https://code.google.com/p/chromedriver/issues/detail?id=1129" ,
76
+ SauceDriver .shouldUseSauce () && TestUtilities .isChrome (driver )
77
+ && TestUtilities .getEffectivePlatform (driver ).is (LINUX ));
71
78
driver .get (pages .framesetPage );
72
79
driver .switchTo ().frame ("fourth" );
73
80
// resize relative to the initial size, since we don't know what it is
@@ -80,6 +87,9 @@ public void testSetsTheSizeOfTheCurrentWindowFromIframe() {
80
87
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
81
88
// though others aren't defined in org.openqa.selenium.Platform).
82
89
assumeFalse (TestUtilities .getEffectivePlatform (driver ).is (ANDROID ));
90
+ assumeFalse ("https://code.google.com/p/chromedriver/issues/detail?id=1129" ,
91
+ SauceDriver .shouldUseSauce () && TestUtilities .isChrome (driver )
92
+ && TestUtilities .getEffectivePlatform (driver ).is (LINUX ));
83
93
driver .get (pages .iframePage );
84
94
driver .switchTo ().frame ("iframe1-name" );
85
95
// resize relative to the initial size, since we don't know what it is
@@ -105,6 +115,9 @@ public void testSetsThePositionOfTheCurrentWindow() throws InterruptedException
105
115
// Browser window cannot be resized or moved on ANDROID (and most mobile platforms
106
116
// though others aren't defined in org.openqa.selenium.Platform).
107
117
assumeFalse (TestUtilities .getEffectivePlatform (driver ).is (ANDROID ));
118
+ assumeFalse ("https://code.google.com/p/chromedriver/issues/detail?id=1129" ,
119
+ SauceDriver .shouldUseSauce () && TestUtilities .isChrome (driver )
120
+ && TestUtilities .getEffectivePlatform (driver ).is (LINUX ));
108
121
WebDriver .Window window = driver .manage ().window ();
109
122
Point position = window .getPosition ();
110
123
Dimension originalSize = window .getSize ();
0 commit comments