I'm trying to log in to a website using Selenium. My main problem is that I can't seem to find any of the elements relevant to logging in.
I just keep getting the NoSuchElementException error. I've tried researching but haven't had any luck figuring out why.
This is my code so far
from selenium import webdriver
driver = webdriver.Chrome("C:/path/to/chromedriver.exe")
driver.get('https://sports.dafabet.com/')
username = driver.find_element_by_id("userName")
password = driver.find_element_by_id("password")
login_button = driver.find_element_by_id("loginBtnForm")