crawl4ai
crawl4ai copied to clipboard
Screenshot must be taken after wait_for condition is met
screenshot=True, takes screenshot before wait_for finishes, so on webpages where data loads later it take screenshot of empty pages.
@studio-anurag Great catch! You're absolutely right, and I’m on it. I'll update it soon, along with a few other things I got from the community. I’ll update everything and release it, and this time, I’ll definitely take the screenshot after waiting. I also made adjustments with the wait_for, it not only supports JavaScript expressions butΩ also waits for the presence of elements if you pass a CSS selector. This is crucial for taking more detailed screenshots. Plus, I plan to add more parameters for screenshots; right now, it’s the whole page, but soon you’ll be able to control location, size, and even specify which part of the page you want. All that is coming soon. Thanks for the very detailed feedback, much appreciated!
Great to hear back from you. I appreciate your efforts. Will be exploring more aspects. This Library is really helpful and with further enhancements is going to be even more helpful. Thanks