question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wait for page to load completely

See original GitHub issue

Is your feature request related to a problem? Please describe. When taking a screenshot of a Storybook page, there are often elements missing, as the window.load event loads before all of the stories have rendered.

Describe the solution you’d like It would be great if there was an event that was emitted or a selector that I can rely on to determine if all of the stories on a given page are have finished rendering and there are no more outstanding XHR requests and the page is fully painted. Is there an event I can subscribe to that Storybook emits when this state has been achieved?

Describe alternatives you’ve considered Listen for window.load event, which is fired before any storybook events have been rendered.

Are you able to assist bring the feature to reality? No

Additional context I’m using Chrome (via remote developer protocol) and Firefox (via Selenium) currently. I’m not sure if that matters.

Edit: change DOMContentLoaded to window.load to accurately represent the situation.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
fauncommented, Oct 5, 2019

This question still stands, robot.

0reactions
stale[bot]commented, Dec 17, 2019

Hey there, it’s me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Selenium -- How to wait until page is completely loaded
Set implicit wait immediately after creating the web driver instance: _ = driver.Manage().Timeouts(). · After page navigation, call JavaScript ...
Read more >
How to get Selenium to wait for a page to load - BrowserStack
Using Implicit Wait. The Implicit Wait tells WebDriver to wait a specific amount of time (say, 30 seconds) before proceeding with the next...
Read more >
How to Get Selenium Wait for Page to Load [2023 Updated]
The pageLoadTimeout command in Selenium implicit wait does exactly what its name suggests. It waits for the page to load for a specified...
Read more >
Need to wait until page is completely loaded ... - Tutorialspoint
We can wait until the page is completely loaded in Selenium webdriver by using the JavaScript Executor. Selenium can run JavaScript commands ...
Read more >
Need to wait until page is completely loaded ... - Edureka
Theoretically speaking, there are 3 types of wait statements. You can use either Implicit waits, or explicit waits, or fluent waits to wait ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found