Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect when page is done loading #2

Closed
chudkins opened this issue Dec 13, 2018 · 2 comments
Closed

Detect when page is done loading #2

chudkins opened this issue Dec 13, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@chudkins
Copy link
Owner

Need a reliable way of detecting if requested page has loaded completely. Example: After login page, storefront page begins to load; admin link is found but can't be clicked yet because "loading spinner" obscures it.

We need a way to wait until the element we want is available, which in this case means the "loading spinner" has cleared because the in-page scripts are satisfied it's done. Can we also wait for this, maybe by spying on the script?

@chudkins chudkins added the enhancement New feature or request label Dec 19, 2018
@chudkins
Copy link
Owner Author

Selenium web elements have a property "Displayed," which is only True if the element is visible. We might be able to use that in a loop, leaving when the item not only exists but is no longer hidden.

@chudkins
Copy link
Owner Author

Resolved by WaitFor-ElementToBeClickable, which will wait until either object is clickable (i.e., not obscured) or timeout expires.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant