Error found when using class to locate elements:
Error message: Selenium.common.exceptions.InvalidSelectorException:Message:Compound class names not permitted (the name of the composite class is not allowed)
Online inquiry information learned:
ClassName does not allow the use of compound class names for parameter "original"
Real-world elements tend to use compound class names (that is, multiple classes are separated by spaces), and when using classname positioning, be aware that the classname parameter can only be a class.
The classname name shown in the example is: btn btn-primary btn-md btn-block Loginbutton Log, we want to use classname to locate this element.
If you take a class full name, the error in the above image will be reported, if you take a class name Driver.find_element_by_class_name ("log"). Click (), you will not get an error.
The solution to the "Python" Selenium element positioning error