Python grabs data with webdriver

the front-end code is as follows:
< tr class= "even" >

    <td>706201</td>
    <td>09-27 15:42</td>
    <td class="nums">
                    <i class="pk-no2">2</i>
                <i class="pk-no6">6</i>
                <i class="pk-no1">1</i>
                <i class="pk-no9">9</i>
                <i class="pk-no7">7</i>
                <i class="pk-no4">4</i>
                <i class="pk-no3">3</i>
                <i class="pk-no5">5</i>
                <i class="pk-no8">8</i>
                <i class="pk-no10">10</i>
            </td>

I want to use python simulation browser to grab the 706201 data and the number in the value of class. My code is as follows:
lines = browser.find_element_by_class_name ("class") .text
but there is no output. What is the reason

?
Sep.16,2021

if I understand it correctly, the question the subject wants to ask is:
question: how to pass the name parameter in find_element_by_class_name (self, name)?

Let's take a look at the definition of name in the document, name: The class name of the element to find
.

so we should write:

lines = browser.find_element_by_class_name("pk-no10").text

the result should be: 10

Menu