Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Does this work for a full-page screenshot of "acrobat.adobe.com"? For me I only get a small viewport, not a full page. Commented Mar 31, 2021 at 17:07
  • Yes, a full-page screenshot of "acrobat.adobe.com" works fine for me with Selenium 4 beta 2. Commented Mar 31, 2021 at 17:16
  • Ah, I had to use Thread.sleep(5000) for the page to load, and this is working now. Commented Mar 31, 2021 at 20:34
  • No amount of sleeping helps the page render correctly for me. Some elements appear strangely cut off. Commented Feb 4, 2022 at 15:08
  • 1
    don't sleep, instead: (new WebDriverWait(base.driver, Duration.ofSeconds(45))).until(ExpectedConditions.elementToBeClickable(By.xpath("//foo[bar]"))).click(); Commented Dec 14, 2022 at 8:49