Error message : selenium.common.exceptions.InvalidSelectorException: Message: Given css selector expression ". clickable event-link math " is invalid: InvalidSelectorError: Document.querySelector: '. clickable event-link math ' is not a valid selector: ". clickable event-link math "
My guess is due to the spaces cause I saw similar issues with spaces but couldn't find a solution that worked for me
Algebra = ' clickable event-link math ' math = driver.find_element_by_class_name(Algebra)
It means that element has several classes... Try to use CSS-selector
driver.find_element_by_css_selector(".clickable.event-link.math")
1.4m articles
1.4m replys
5 comments
57.0k users