I tried to find an element by class name with the following code:
result.find_element_by_class_name("0")
result is an WebElement that contains the element I´m looking for. (I am sure about it)
The html-code is:
<tr class="0"></tr>
But if I do this I get the following Error:
selenium.common.exceptions.InvalidSelectorException: Message: The given selector 0 is either invalid or does not result in a WebElement. The following error occurred:
InvalidSelectorError: An invalid or illegal class name was specified
There are other WebElements inside result which I can find via the class name (e.g. there is an element named last and if I try to get it, it works)
So, how can I find an element by class name, if the class name is a Number? (which is a string)
 
     
    