Select an element from the dropdown (top-right) or use the links to open a dedicated test page with instructions.
Choose multiple options and use the buttons to review selection.
- Multi-select with id element_multiselect. Use multiple selection methods.
// Java
WebElement sel = driver.findElement(By.id("element_multiselect"));
Select s = new Select(sel);
s.selectByValue("m2");
List<WebElement> all = s.getAllSelectedOptions();
# Python
from selenium.webdriver.support.ui import Select
sel = Select(driver.find_element(By.ID, "element_multiselect"))
sel.select_by_value('m2')
print([o.get_attribute('value') for o in sel.all_selected_options])
Tip: use By.id selectors where possible. IDs used on this page are stable and intended for automated testing.