from selenium import webdriver
import time
from selenium.webdriver.common.keys import Keys
webdriver = webdriver.Chrome("chromedriver.exe")
webdriver.get('http:strona.pl ')
obcy = webdriver.find_element_by_id('intro-start')
obcy.click()
time.sleep(2)
text = webdriver.find_element_by_id('box-interface-input')
text.send_keys(" tekst ")
text.send_keys(Keys.ENTER)
Taki po kliknięciu w run wyskakuje komunikat:
self.start_session(capabilities, browser_profile)
File "C:\Users\gramy\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\gramy\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\gramy\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 91
Current browser version is 90.0.4430.212 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe