@@ -93,12 +93,14 @@ public void testShouldBeAbleToClickOnAnElementHiddenByOverflow() {
9393 }
9494
9595 @ Test
96- @ Ignore (value = FIREFOX , issue = "https://github.com/mozilla/geckodriver/issues/2013" )
96+ @ Ignore (value = FIREFOX ,
97+ reason = "horizontal scroll bar gets in the way" ,
98+ issue = "https://github.com/mozilla/geckodriver/issues/2013" )
9799 public void testShouldBeAbleToClickOnAnElementHiddenByDoubleOverflow () {
98100 driver .get (appServer .whereIs ("scrolling_tests/page_with_double_overflow_auto.html" ));
99101
100102 driver .findElement (By .id ("link" )).click ();
101- onlyPassIfNotOnMac ( 662 , () -> wait .until (titleIs ("Clicked Successfully!" ) ));
103+ wait .until (titleIs ("Clicked Successfully!" ));
102104 }
103105
104106 @ Test
@@ -111,7 +113,9 @@ public void testShouldBeAbleToClickOnAnElementHiddenByYOverflow() {
111113
112114 @ Test
113115 @ Ignore (value = IE , issue = "716" )
114- @ Ignore (value = FIREFOX , issue = "https://github.com/mozilla/geckodriver/issues/2013" )
116+ @ Ignore (value = FIREFOX ,
117+ reason = "horizontal scroll bar gets in the way" ,
118+ issue = "https://github.com/mozilla/geckodriver/issues/2013" )
115119 public void testShouldBeAbleToClickOnAnElementPartiallyHiddenByOverflow () {
116120 driver .get (appServer .whereIs ("scrolling_tests/page_with_partially_hidden_element.html" ));
117121
@@ -131,7 +135,9 @@ public void testShouldNotScrollOverflowElementsWhichAreVisible() {
131135 }
132136
133137 @ Test
134- @ Ignore (value = FIREFOX , issue = "https://github.com/mozilla/geckodriver/issues/2013" )
138+ @ Ignore (value = FIREFOX ,
139+ reason = "horizontal scroll bar gets in the way" ,
140+ issue = "https://github.com/mozilla/geckodriver/issues/2013" )
135141 @ NotYetImplemented (IE )
136142 public void testShouldNotScrollIfAlreadyScrolledAndElementIsInView () {
137143 driver .get (appServer .whereIs ("scroll3.html" ));
@@ -160,7 +166,9 @@ public void testShouldScrollOverflowElementsIfClickPointIsOutOfViewButElementIsI
160166 @ SwitchToTopAfterTest
161167 @ Test
162168 @ NotYetImplemented (SAFARI )
163- @ NotYetImplemented (value = FIREFOX , reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1314462" )
169+ @ Ignore (value = FIREFOX ,
170+ reason ="frame not scrolled into view" ,
171+ issue = "https://bugzilla.mozilla.org/show_bug.cgi?id=1314462" )
164172 public void testShouldBeAbleToClickElementInAFrameThatIsOutOfView () {
165173 driver .get (appServer .whereIs ("scrolling_tests/page_with_frame_out_of_view.html" ));
166174 driver .switchTo ().frame ("frame" );
@@ -179,16 +187,6 @@ public void testShouldBeAbleToClickElementThatIsOutOfViewInAFrame() {
179187 assertThat (element .isSelected ()).isTrue ();
180188 }
181189
182- @ SwitchToTopAfterTest
183- @ Test
184- @ Ignore (value = ALL , reason = "All tested browsers scroll non-scrollable frames" )
185- public void testShouldNotBeAbleToClickElementThatIsOutOfViewInANonScrollableFrame () {
186- driver .get (appServer .whereIs ("scrolling_tests/page_with_non_scrolling_frame.html" ));
187- driver .switchTo ().frame ("scrolling_frame" );
188- WebElement element = driver .findElement (By .name ("scroll_checkbox" ));
189- assertThatExceptionOfType (MoveTargetOutOfBoundsException .class ).isThrownBy (element ::click );
190- }
191-
192190 @ SwitchToTopAfterTest
193191 @ Test
194192 @ NotYetImplemented (SAFARI )
@@ -202,19 +200,23 @@ public void testShouldBeAbleToClickElementThatIsOutOfViewInAFrameThatIsOutOfView
202200
203201 @ SwitchToTopAfterTest
204202 @ Test
205- @ Ignore (value = FIREFOX , issue = "https://github.com/mozilla/geckodriver/issues/2013" )
203+ @ Ignore (value = FIREFOX ,
204+ reason = "horizontal scroll bar gets in the way" ,
205+ issue = "https://github.com/mozilla/geckodriver/issues/2013" )
206206 public void testShouldBeAbleToClickElementThatIsOutOfViewInANestedFrame () {
207207 driver .get (appServer .whereIs ("scrolling_tests/page_with_nested_scrolling_frames.html" ));
208208 driver .switchTo ().frame ("scrolling_frame" );
209209 driver .switchTo ().frame ("nested_scrolling_frame" );
210210 WebElement element = driver .findElement (By .name ("scroll_checkbox" ));
211211 element .click ();
212- onlyPassIfNotOnMac ( 651 , () -> assertThat (element .isSelected ()).isTrue () );
212+ assertThat (element .isSelected ()).isTrue ();
213213 }
214214
215215 @ SwitchToTopAfterTest
216216 @ Test
217- @ Ignore (value = FIREFOX , issue = "https://github.com/mozilla/geckodriver/issues/2013" )
217+ @ Ignore (value = FIREFOX ,
218+ reason = "horizontal scroll bar gets in the way" ,
219+ issue = "https://github.com/mozilla/geckodriver/issues/2013" )
218220 @ NotYetImplemented (SAFARI )
219221 public void testShouldBeAbleToClickElementThatIsOutOfViewInANestedFrameThatIsOutOfView () {
220222 driver .get (appServer .whereIs ("scrolling_tests/page_with_nested_scrolling_frames_out_of_view.html" ));
@@ -223,21 +225,7 @@ public void testShouldBeAbleToClickElementThatIsOutOfViewInANestedFrameThatIsOut
223225 WebElement element = driver .findElement (By .name ("scroll_checkbox" ));
224226 element .click ();
225227
226- onlyPassIfNotOnMac (651 , () -> assertThat (element .isSelected ()).isTrue ());
227- }
228-
229- private void onlyPassIfNotOnMac (int mozIssue , Runnable toCheck ) {
230- try {
231- toCheck .run ();
232- assumeFalse (
233- "It appears https://github.com/mozilla/geckodriver/issues/" + mozIssue + " is fixed" ,
234- Platform .getCurrent () == Platform .MAC && Browser .detect () == FIREFOX );
235- } catch (Throwable e ) {
236- // Swallow the exception, as this is expected for Firefox on OS X
237- if (!(Platform .getCurrent () == Platform .MAC && Browser .detect () == FIREFOX )) {
238- throw e ;
239- }
240- }
228+ assertThat (element .isSelected ()).isTrue ();
241229 }
242230
243231 @ Test
@@ -256,7 +244,9 @@ private long getScrollTop() {
256244 @ SwitchToTopAfterTest
257245 @ Test
258246 @ NotYetImplemented (SAFARI )
259- @ NotYetImplemented (value = FIREFOX , reason = "https://bugzilla.mozilla.org/show_bug.cgi?id=1314462" )
247+ @ Ignore (value = FIREFOX ,
248+ reason ="frame not scrolled into view" ,
249+ issue = "https://bugzilla.mozilla.org/show_bug.cgi?id=1314462" )
260250 public void testShouldBeAbleToClickElementInATallFrame () {
261251 driver .get (appServer .whereIs ("scrolling_tests/page_with_tall_frame.html" ));
262252 driver .switchTo ().frame ("tall_frame" );
0 commit comments