File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
common/src/web/scrolling_tests
java/client/test/org/openqa/selenium Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < title > Page with partially hidden element</ title >
5
+ </ head >
6
+ < body >
7
+ < div style ="width:200px; height: 200px; overflow: auto; ">
8
+ < div style ="height: 175px; width: 240px; "> Placeholder</ div >
9
+ < div >
10
+ < button type ="button " style ="height: 40px; box-sizing: border-box " id ="btn " onclick ="window.location='target_page.html' "> Click me!</ button >
11
+ </ div >
12
+ </ div >
13
+ </ body >
14
+ </ html >
Original file line number Diff line number Diff line change 28
28
import static org .openqa .selenium .support .ui .ExpectedConditions .titleIs ;
29
29
import static org .openqa .selenium .testing .Driver .ALL ;
30
30
import static org .openqa .selenium .testing .Driver .CHROME ;
31
+ import static org .openqa .selenium .testing .Driver .FIREFOX ;
31
32
import static org .openqa .selenium .testing .Driver .HTMLUNIT ;
32
33
import static org .openqa .selenium .testing .Driver .IE ;
33
34
import static org .openqa .selenium .testing .Driver .MARIONETTE ;
@@ -105,6 +106,18 @@ public void testShouldBeAbleToClickOnAnElementHiddenByYOverflow() {
105
106
wait .until (titleIs ("Clicked Successfully!" ));
106
107
}
107
108
109
+ @ Test
110
+ @ Ignore (IE )
111
+ @ Ignore (FIREFOX )
112
+ @ Ignore (MARIONETTE )
113
+ @ Ignore (value = SAFARI , reason = "not tested" )
114
+ public void testShouldBeAbleToClickOnAnElementPartiallyHiddenByOverflow () {
115
+ driver .get (appServer .whereIs ("scrolling_tests/page_with_partially_hidden_element.html" ));
116
+
117
+ driver .findElement (By .id ("btn" )).click ();
118
+ wait .until (titleIs ("Clicked Successfully!" ));
119
+ }
120
+
108
121
@ Test
109
122
public void testShouldNotScrollOverflowElementsWhichAreVisible () {
110
123
driver .get (appServer .whereIs ("scroll2.html" ));
You can’t perform that action at this time.
0 commit comments