Introduction Multiselect options

Selecting more than one option at a time is known as multiselect.

MultiSelect

Multi select also uses the same methods which we are using for dropdown. It contains some extra methods such as DeSelect Methods which are used to deselect the selected options in multi select.

We can see the name as “multiple” in select tags such tag supports multi select operation.

Below are the options which also support multi select options.

  • select_by_index()
  • select_by_value()
  • select_by_visible_text()
  • options property
  • is_multiple property
  • all_selected_options property



DeSelect Methods:

Deselect methods work only on Multi select options; it doesn’t work on dropdown.

Because in DropDown we used to select only a single option here we don’t require to deselect any selected option, where as in Multi Select options we used to select more then one option so that we used to deselect the option which isn't required.

It Contains four DeSelect methods. Below are the DeSelect methods which we use in multi select options.

  • deselect_by_index()
  • deselect_by_value()
  • deselect_by_visible_text()
  • deselect_all()