what are the values for document.readyState
what are the 3 page load strategies
options = Options()
options.page_load_strategy = …
what is implicit wait
driver.implicitly_wait(10)
1. tell WebDriver to poll the DOM for a certain amount of time when trying to find an element or elements if they are not immediately available.
2. default is 0 (disabled)
3. set for the life of the session
4. shouldn’t me mixed with explicit wait
What is fluent wait.
wait = WebDriverWait(driver, timeout=10, poll_frequency=1, ignored_exceptions=[ElementNotVisibleException, ElementNotSelectableException])
element =wait.until(
EC.element_to_be_clickable((By.XPATH, “//div”)))
1. defines the maximum amount of time to wait for a condition
2. defines frequency with which to check the condition.
3. allows ignoring of specific types of exceptions whilst waiting, such as NoSuchElementException
what is explicit wait
halts program execution until the condition you pass it resolves. The condition is called with a certain frequency until the timeout of the wait is elapsed.
what are some of the expected conditions for waits
alert is present
element exists
element is visible
title contains
title is
element staleness
visible text
what is default polling frequency in explicit wait
0.5 sec
what are the 2 types of assertions