This project I'm working on is the same project I was working on when I asked this StackOverflow question: I'm getting a name error when running Selenium-based code. Again, both the questions are related to Selenium. However, this time I am not getting any errors but the website I want to be opened isn't opening. And I'm sure my chrome_directory is right. Idk why Google.com isn't opening. This is my code:
from selenium import webdriver
class Infow():
def __init__(self):
self.driver = webdriver.Chrome(executable_path='C:\Program Files (x86)\Chrome Driver@C drive\ChromeDriverExtracted\chromedriver_win32 (2)\chromedriver.exe')
def get_infow(self, query):
self.query = query
self.driver.get(url="https://www.google.com/")
assist.Infow()
assist.get_infow("exe")
This is the text I see in the terminal
"D:\Rocland\Selenium Pycharm\Scripts\python.exe" "D:/PycharmProjects/Selenium
Pycharm/Selenium for trevor.py"
Process finished with exit code 0
My apologies if this question is senseless. I'm a Selenium beginner and all the Stack I saw don't answer my problem. (I'm not sure if this will help but I'm using PyCharm on Win10) I hope I made my points clear and anyone's help will be gladly accepted. Thanks in advance!