Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python all option

from selenium import webdriver

browser = webdriver.Firefox()

select_box = browser.find_element_by_name("month") 

options = [x for x in select_box.find_elements_by_tag_name("option")]

for element in options:
    print element.get_attribute("value") 
Source by www.edureka.co #
 
PREVIOUS NEXT
Tagged: #python #option
ADD COMMENT
Topic
Name
5+3 =