Selenium how to manage wait for page load?
问题 I am developing web crawlers for a while and the most common issue for me is waiting for page to be completely loaded, includes requests, frames, scripts. I mean completely done. I used several methods to fix it but when I use more than one thread to crawl websites I always get this kind of problem. the Driver opens itself, goes through the URL, doesn't wait and goes through the next URL. My tries are: JavascriptExecutor js = (JavascriptExecutor) driver.getWebDriver(); String result = js