The from the selenium import webdriver
The from selenium.webdriver.com mon. By the import by
The from the selenium. Webdriver. Support the import expected_conditions as EC
The from the selenium. Webdriver. Support. Wait the import WebDriverWait
Want to use the following statements for
To determine whether the name for the name of the input box loaded, if the load, output is ok, if you don't load just refresh the page once,
Continue to wait for, refresh the page 5 times, still not load, does not exist, withdrew from the browser,
WebDriverWait (browser, 10) until (EC) presence_of_element_located ((By NAME, 'NAME')))
Browser=webdriver. Chrome ()
The refresh ()
CodePudding user response:
Please share it