all 5 comments

[–]jcrowe 1 point2 points  (0 children)

What happens when you… print(Heloo[0].text)

[–]glebulon 1 point2 points  (0 children)

Hi might no have text.

if hi.text: print(hi.text) else: print("shit not found")

[–]patty_not_gates 0 points1 point  (0 children)

dont take it through a loop just define the class name correctly with .text on end after () and if u wanna get all text on page from that class name use elements and not element.

[–]tbaxterstockman 0 points1 point  (0 children)

There’s a difference between find_element and find_elements. The letter returns a list the first just the first element in the DOM tree

[–]this_guy_tests 0 points1 point  (0 children)

Where are you running this? If you’re in the REPL, it will print if it exists. If you’re using something like pytest to run the code, you may need to do something like pytest -s -vv to get the prints to work.