How I get a content with selenium python?

Question:

I need to pick up the 33 number in this font, how can I get it with selenium python and store it in a variable?

<font style="vertical-align: inherit;">33</font>

Answers:

Get the font element in the usual way by xpath, then get its text with .text:

driver.find_element(By.XPATH, [xpath]).text
Answered By: Addison Schmidt
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.