Answers for "how to select li element in selenium python"

0

how to select li element in selenium python

You need to use the .find_elements_by_ method.

For example,

html_list = self.driver.find_element_by_id("myId")
items = html_list.find_elements_by_tag_name("li")
for item in items:
    text = item.text
    print text
Posted by: Guest on March-20-2021

Code answers related to "how to select li element in selenium python"

Python Answers by Framework

Browse Popular Code Answers by Language