Tried searching but did not find any working solutions for this. I have a drop down menu as follows where I'd like to select multiple options at once:
<select name="Area" multiple="" size="5" class="sel0"
onchange="opbygQvar('Area',dummyArray,false,true,false)">
<option value="">(blankstil)
</option><option value="1">1 A
</option><option value="2">2 B
</option><option value="3">3 C
</option><option value="4">4 D
</option><option value="5">5 E
</option><option value="6">6 F
</option></select>
Trial Code:
driver.find_element_by_xpath("//select[@name='Area']/option[text()='1 A']").click()
driver.find_element_by_xpath("//select[@name='Area']/option[text()='2 B']").click()
only selects one option and then changes selection to a different one instead of keeping multiple options checked.
Any help is highly appreciated - thanks in advance :)