How to get text with Selenium WebDriver in Python
How to get text with Selenium WebDriver in Python
You want just .text
.
You can then verify it after youve got it, dont attempt to pass in what you expect it should have.
Python
element.text
Java
element.getText()
C#
element.Text
Ruby
element.text
How to get text with Selenium WebDriver in Python
The answer is:
driver.find_element_by_class_name(ctsymbol).text