name 'driver' not defined, Selenium Webdriver python3
meaning of names dictionary
names for girls
names for boys
name meaning search engine
behind the name
I'm trying to open a website using Selenium WebDriver Chrome, but haven't even gotten to that as my code keeps producing errors. I have already fixed one by doubling the '' in the directory for Chrome Driver.
I am using Pycharm. I would like to know why this is happening, and a fix for it.
The error is:
Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'driver' is not defined
and this is my code:
from selenium import webdriver Browser = driver.Chrome(r'''C:\Users\ballc\Downloads\chromedriver_win32\chromedriver.exe''')
from selenium import webdriver
you can see the module name is
webdriver, so you should use that name. As the error states,
driver is not defined (you never defined it).
Browser = driver.Chrome()
browser = webdriver.Chrome()
Given name, synonyms: title, denomination, designation, honorific, tag, epithet, label, naam, moniker, handle, appellation, cognomen, allonym, anonym, appellative Name definition is - a word or phrase that constitutes the distinctive designation of a person or thing. How to use name in a sentence. a word or phrase that constitutes the distinctive designation of a person or thing; a word or symbol used in logic to designate an entity…
Try this code :
from selenium import webdriver driver = webdriver.Chrome(executable_path = r'D:/Automation/chromedriver.exe') driver.get("https://www.google.com/")
Name, "as usual, the big race will lure the top names" Name definition, a word or a combination of words by which a person, place, or thing, a body or class, or any object of thought is designated, called, or known. See more.
Name, synonyms: celebrity, star, superstar, VIP, famous person, important person, leading light, celebutante, big name, luminary, mogul, person of note, dignitary, personage, worthy, expert, authority, lion, celeb, somebody, megastar, big noise, big shot, bigwig, big cheese, big gun, big wheel, big fish Define name. name synonyms, name pronunciation, name translation, English dictionary definition of name. n. 1. a. A word or words by which an entity is designated and distinguished from others.
Baby Names at BabyNames.com, "hundreds of diseases had not yet been isolated or named" Explore popular baby names and selection tips, learn baby name meanings, get ideas for unique boy and girl baby names from the editors of Parents magazine.
Behind the Name: The Meaning and History of First Names, synonyms: call, give a name to, dub, label, style, term, title, entitle, baptize, christen, clepe, denominate, called, by the name of, baptized, christened, known as, under the name of, dubbed, entitled, styled, termed, described as, labeled A name sticks with us from birth until death and although we often have no control over it, our names can define us. We can all thank our parents for our name. You can search for your own name and pull out amazing information from the massive name database.
Tuscaloosa teen wins NASA's "Name the Rover" contest, names Mars helicopter, specify (an amount, time, or place) as something desired, suggested, or decided on. Probably derived from the old Celtic name Rigantona meaning "great queen". It is speculated that this was the name of an otherwise unattested Celtic goddess of fertility and the moon. The name Rhiannon appears later in Welsh legend in the Mabinogion, borne by the wife of Pwyll and the mother of Pryderi.
- you imported
webdriver, what should be
- @PRMoureu is it not supposed to be webdriver? I just used driver instead, it said "no module named driver"
- you are supposed to import
webdriverbut why not using it instead of
- @PRMoureu i did import webdriver do you mean driver.Chrome?
- yup! what
driver.Chromeis supposed to be ? why don't you want to use