from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import os
Game_Pin = input('Enter your PIN: ')
NickNAME = input('Enter your nickname: ')
def Enter_Press():
selenium.find_element_by_name("Enter").click()
def Kahoot_Spammer(Game_Pin, NickNAME):
chromedriver = os.chdir('C:\\Users\\ovvip\\Downloads\\chromedriver.exe')
browser = webdriver.Chrome(chromedriver)
browser.get('https://kahoot.it/')
game_pin = selenium.find_element_by_id("Game PIN")
Name = selenium.find_element_by_id("Nickname")
game_pin.send_keys(Game_Pin)
Enter_Press()
Name.send_keys(NickNAME)
Enter_Press()
Kahoot_Spammer(Game_Pin, NickNAME)`enter code here`
我对Python很陌生,所以我不确切知道这里发生了什么。我只是不断收到我在下面附上的这个错误。任何帮助表示赞赏。先谢谢!
Traceback (most recent call last):
File "C:\Users\ovvip\AppData\Local\Programs\Python\Python36-32\KahootSpammer.py", line 28, in <module>
Kahoot_Spammer(Game_Pin, NickNAME)
File "C:\Users\ovvip\AppData\Local\Programs\Python\Python36-32\KahootSpammer.py", line 13, in Kahoot_Spammer
chromedriver = os.chdir('C:\\Users\\ovvip\\Downloads\\chromedriver.exe')
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\ovvip\\Downloads\\chromedriver.exe'