简体   繁体   中英

Script error python chromedriver selenium

im a begginer and i have a problem with my script

I show you a screenshot and I have highlighted the steps I want to do and circled the error logs, if someone can help me please I really don't have the solution even if it may seem stupid for them others..

SCRIPT IMAGE

You don't import webdriver at all in your code. Try adding it at the beginning:

from selenium import webdriver

What is more, you are trying to sendKeys or click on non-existing elements, you need to assign find_element to variables, which you are referencing further.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM