Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
 
PREVIOUS NEXT
Tagged: #select #li #element #selenium #python
ADD COMMENT
Topic
Name
6+4 =