從硒進口webdriver
從webdriver_manager。chrome進口ChromeDriverManager
從selenium.webdriver.common.by進口
從selenium.webdriver.chrome。選擇導入選項
司機= webdriver.Chrome (ChromeDriverManager () . install ())
drivers.get (“https://www.google.co.in/”)
drivers.find_element(通過。的名字,“問”)。send_keys (Prabhakar Kumar Jha”)
錯誤消息
WebDriverException:信息:服務/root/.wdm/drivers/chromedriver / linux64/103.0.5060 chromedriver意外退出。狀態碼是:127