Python WebDriver waiting for page to load

I am using a Python driver in Chrome that accesses pages that each require a login. After logging in, I want the program to wait for the entire page to load before taking a screenshot. Can you help with this waiting procedure?

+4
source share
1 answer

driver.get(url) already waiting for the page to load.

You can use selenium.webdriver.support.ui.WebDriverWait() to explicitly wait for a condition.

ChromeDriver 18.0.995.0 does not support taking screenshots on a Linux page.

+2
source

Source: https://habr.com/ru/post/1391317/


All Articles