I am learnig Selenium and I encountered a problem where one of my projects can lanuch a browser but the other one throws errors. Both of them have the same code right now, bot have the webdriver copied to project folder. If I leave this line like it is:
driver = webdriver.Chrome()
I get the following error:
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
If I change it to this:
driver = webdriver.Chrome(r"C:\Users\user\PycharmProjects\Sel\chromedriver.exe")
I get the following error:
ValueError: Timeout value connect was <object object at 0x0000022461CC8720>, but it must be an int, float or None.
I don't understand why is it happening, both of these projects are the same, configured in the same name, the only difference. So far the whole code looks like this:
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
driver = webdriver.Chrome(r"C:\Users\user\PycharmProjects\Sel\chromedriver.exe")
driver.get('https://the-internet.herokuapp.com/drag_and_drop')
driver.implicitly_wait(10)
Update
I am 100% sure I am using latest Selenium, as per the image below, as per this image