Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the get_Text() equivalent in python bindings for Selenium/Webdriver

I would like to move from Selenium 1 to Selenium 2. I use python binding however I can not find any get_text() functions.

eg. selenium.find_elements_by_css_selector("locator").get_text()

Is there such function in python bindings for Selenium/Webdriver ?

like image 288
aleetesting Avatar asked Feb 24 '23 21:02

aleetesting


1 Answers

use the '.text' property.

element.text
like image 130
Corey Goldberg Avatar answered Mar 05 '23 14:03

Corey Goldberg