Hey Natasha, following methods are used to deSelect an option/options of a dropdown in Selenium Webdriver:
-
deselectByVisibleText(): This method removes the selected item from list for particular option:
-
deselectByValue(): Deselect option from list by using value of particular option:
-
deselectByIndex(): This method removes the selection by index value of the option. Index values of the list are always in integer:
-
deselectAll(): Method is able to Deselect all Selected options from Multi-Select Dropdown: