What does Selenium .set_script_timeout(n) do and how is it different from driver.set_page_load_timeout(n)?
问题 In context of python selenium, I don't quite understand the exact difference of driver.set_page_load_timeout(n) VS. driver.set_script_timeout(n) . Both seem to be used interchangeable to set a timeout to load an URL via driver.get(URL) , but sometimes also together. Scenario 1 : driver.set_page_load_timeout(5) website = driver.get(URL) results = do_magic(driver, URL) Scenario 2 : driver.set_script_timeout(5) website = driver.get(URL) results = do_magic(driver, URL) How do both scenarios