Clearing an Option From a Select List
Learn how to clear a select list using Selenium, and try it out yourself.
We'll cover the following
Clear one selection
In a multiple select list, we can clear a selected option if we want to. The procedure is to first find that selected option, and then remove its selection. The below example demonstrates how we can clear an already selected option from the multiple select list in Selenium:
Get hands-on with 1400+ tech skills courses.