Closed gbengaorelusi closed 1 year ago
@gbengaorelusi, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
This is no longer supported:
webdriver.Chrome('/chromedriver.exe')
You don't need to specify the driver at all any longer, Selenium will manage it for you. If you need to use a custom driver, you can specify it in a Service class: https://www.selenium.dev/documentation/webdriver/drivers/service/#driver-location
`class InstagramBot: def init(self, username, password, hashtags): self.username = username self.password = password self.hashtags = hashtags
self.driver = webdriver.Chrome('/chromedriver.exe')
time.sleep(1)
self.login()
self.by = By
self.ec = EC
self.WebDriverWait = WebDriverWait
`
are you saying I should remove my self.driver variable, and also what imports should I remove from below
`from selenium import webdriver import os import time import datetime
from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.by import By`
You can see a complete working example here - https://www.selenium.dev/documentation/webdriver/getting_started/first_script/
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
What happened?
chrome
How can we reproduce the issue?
Relevant log output
Operating System
Windows 10
Selenium version
py Version: 4.12.0
What are the browser(s) and version(s) where you see this issue?
chrome
What are the browser driver(s) and version(s) where you see this issue?
chrome driver 116
Are you using Selenium Grid?
no