Using Robot Framework, I am trying to create a loop in which a value is selected from the 1st drop-down, then a value is selected from the 2nd drop-down. The user then performs another option and then loop starts over and repeats until all elements from the 1st loop have been selected.
Currently, my code iterates completely through the 1st drop-down and then completely thru the 2nd drop-down and ends with the last value of both drop-downs selected. I need to be able to iterate through each drop-down one at a time. I have included my code & the relevant HTML.
${one}= Get List Items id=CMB_CLASS_ID //get all values from 1st drop down
:FOR ${each} IN @{one}
\ Select From List By Label id=CMB_CLASS_ID ${each}
${two}= Get List Items id=CMB_EVENT_TYPE_ID //get all values from 2nd drop down
:FOR ${each} IN @{two}
\ Select From List By Label id=CMB_EVENT_TYPE_ID ${each}
<select name="CMB_CLASS_ID" id="CMB_CLASS_ID" onchange="GetClassData();" class="form-control" orgvalue="-1" tabindex="1">
<option value="-1" master_value="" selected="true">- Not Selected -</option>
<option value="807000000" master_value="">Budget Lines</option>
<option value="712000000" master_value="">Documents</option>
</select>
<select name="CMB_EVENT_TYPE_ID" id="CMB_EVENT_TYPE_ID" xml_name="EVENT_TYPE_ID" onchange="GetEventData(this);" class="form-control" orgvalue="-1" tabindex="2">
<option value="-1" master_value="" selected="true">- Not Selected -</option>
<option value="905000000" master_value="">Created</option>
<option value="906000000" master_value="">Updated</option>
</select>