Great spirit of selenium, opened the business staff to find the elements of code error cause can't fill in the user name, why?
Code:
The from selenium.webdriver.com mon. By the import by
The from the selenium. Webdriver. Support. The UI import WebDriverWait
The from the selenium. Webdriver. Support the import expected_conditions as EC
The from the selenium. Webdriver import Chrome
The from the selenium. Webdriver import ChromeOptions
Option=ChromeOptions ()
Option. Add_experimental_option (' excludeSwitches' [' enable - automation '])
Browser=Chrome (options=option)
Wait=WebDriverWait (browser, 10)
The get (' https://sycm.taobao.com/portal/home.htm ')
Input=wait until (EC. Presence_of_all_elements_located ((By CSS_SELECTOR, FM - login id '#')))
Input [0]. Send_keys (' 123 ')