Tip 4
Use of _setSelected() API
Where it is Used?
This API facilitates the selection of drop-down option(s).
How to Use this API?
If the element is recognized using _select() for the select drop-down, employ the _setSelected() API to choose one or multiple options.
For elements identified with _div(), _span(), _listItem(), etc., utilize the _click() API.