So i have a log-in script and i just try find element by class on newest version of selenium (4.8.0)
code:
button = browser.find_element(By.CLASS_NAME, 'just class name')
AND this code not working.
my stuff:
- firefox driver - 0.32.1 (2023-02-02, b7f075124503)
- selenium 4.8.0
this is how the documentation searches for elements - By.CLASS_NAME
, By.ID
, etc...
https://www.selenium.dev/documentation/webdriver/elements/finders/
tried other variations of the code like find_element_by_ID
and etc, installed an additional library for the selenium (I do not remember the name).