Tip 4
Use of _setSelected() API
Where it is Used?
This API facilitates the selection of drop-down option(s).
![](https://cdn.prod.website-files.com/6073f69c8de34f0564ad1170/661e131301b56277e1e01cc9_SShot%202%234.jpg)
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.
![](https://cdn.prod.website-files.com/6073f69c8de34f0564ad1170/661e13483587e5adbe91fddc_SShot%203%234.jpg)
For elements identified with _div(), _span(), _listItem(), etc., utilize the _click() API.
![](https://cdn.prod.website-files.com/6073f69c8de34f0564ad1170/661e138e69f1521b1616195f_SShot%204%234.jpg)