Additional functionality for I.seeInViewport() / I.waitForInViewport() #4305
sethvanwykJET
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature
seeInViewport
- Parameters: locatorwaitForInViewport
- Parameters: locator, timeoutUsage
Assert whether a component on the page is present in the viewport
Useful for testing whether an element was focused into view after an error is triggered
Example: Select a button to process something with an input not completed. Website scrolls input into view informing the user they need to fill the field before progressing.
Then using codeceptJS to see that the element is present in the viewport.
Beta Was this translation helpful? Give feedback.
All reactions