Q1.1. Using time.sleep()
This Selenium Python question checks whether you can go beyond textbook knowledge on 1. Using time.sleep() and reason about it the way a working QA engineer does — with a definition, an example, and the edge case that usually comes up next.
# BAD
time.sleep(5)
driver.find_element(...).click()
# GOOD
wait = WebDriverWait(driver, 10)
wait.until(EC.element_to_be_clickable((By.ID, "submit"))).click()- Anchor the answer in a real Selenium Python project — panels reward specificity on 1. Using time.sleep() over textbook wording.
- Be ready to whiteboard the 1. Using time.sleep() snippet live — panels often ask you to type it, not describe it.
Discussion
Ask a question, share your experience, or correct us. Be kind — real people are reading.