I tried to teach myself how to code with selenium but it did not work no matter what i tried.
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
import time
service = Service(executable_path="C:UsersUSER.PC-20220517DPKYDesktopcodingbotchromedriver.exe")
driver = webdriver.Chrome(service=service)
# jetzt starten wir das programm
driver.get('https://google.com')
#jetzt targeten wir eine css class im html text
input_element = driver.find_element(By.CLASS_Name,'gLFyf')
input_element.send_keys('bals')
time.sleep(10)
#ende des programs
driver.quit()
I installed selenium which was successful and i put the cromedriver in the same folder as the code file. The current version of my google chrome is Version 125.0.6422.142 but the webdriver is only available in 125.0.6422.141 . I tried asking Copilot but it didn’t really gave me an answer…