Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Additional functionality for I.seeInViewport() / I.waitForInViewport() #4305

sethvanwykJET started this conversation in Ideas
Discussion options

Feature

seeInViewport - Parameters: locator

waitForInViewport - Parameters: locator, timeout

Usage

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.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /