Firstly, you have to find the element:

select_element = driver.find_element_by_id('completed_activity...')

Secondly, you have to find all the inside this select:

options = select_element.find_elements_by_tag_name('option')

Now you can on this list:

for option in options:
    .... your code for each option ....



Source link https://sqa.stackexchange.com/questions/33482/how-to--and-loop-the-select-options-in---using--with-p

LEAVE A REPLY

Please enter your comment!
Please enter your name here