Waiting method in selenium-6 test script
Example 1:
From selenium import webdriver
B = webdriver.Firefox ()
B.find_element_by_id ("kw") .send_keys ("51cto")
B.implicitly_wait (5) # wait five seconds
B.find_element_by_id ("kw1") # kw1 does not exist here, because the b.implicitly_wait () method is used, so the error is reported when the query times out 5 seconds later.
Application of example 2:WebDriverWait in script