File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
java/test/org/openqa/selenium/bidi/input Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3434import org .openqa .selenium .bidi .module .Input ;
3535import org .openqa .selenium .interactions .Actions ;
3636import org .openqa .selenium .interactions .WheelInput ;
37+ import org .openqa .selenium .support .ui .ExpectedCondition ;
3738import org .openqa .selenium .testing .JupiterTestBase ;
3839import org .openqa .selenium .testing .NeedsFreshDriver ;
3940import org .openqa .selenium .testing .NotYetImplemented ;
@@ -137,7 +138,7 @@ void shouldScrollFromViewportByGivenAmount() {
137138 appServer .whereIs ("scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html" ));
138139 WebElement footer = driver .findElement (By .tagName ("footer" ));
139140 int deltaY = footer .getRect ().y ;
140-
141+
141142 input .perform (
142143 windowHandle ,
143144 new Actions (driver )
@@ -146,6 +147,8 @@ void shouldScrollFromViewportByGivenAmount() {
146147 .pause (3000 )
147148 .getSequences ());
148149
150+ wait .until (driver -> driver .findElement (By .name ("nested_scrolling_frame" )).isDisplayed ());
151+
149152 assertTrue (inViewport (footer ));
150153 }
151154
You can’t perform that action at this time.
0 commit comments