def select_item(
self,
item: str,
timeout: int = 30
) -> None
Select one option for the target element when it is a dropdown type control.
Parameters:
item [Required]: str
Target option of the dropdown control.
timeout: int
Timeout for the operation, the unit is second, and the default value is 30 seconds.
Returns:
None
Example:
- Select item on web (type is select)
![](https://clicknium.com/wp-content/uploads/2023/09/select-item-sample1.png)
from clicknium import clicknium as cc, locator, ui
chrome_tab = cc.chrome.open("https://contoso.com")
chrome_tab.find_element(locator.chrome.page.select).select_item('One')
- Select item on window file “Saved As” dialog
![sample](https://www.clicknium.com/assets/images/select_item_sample2-c79b01399c862d7170fdb20d4f37d1c7.png)
from clicknium import clicknium as cc, locator, ui
ui(locator.notepad.combobox_filetype).select_item('All Files (*.*)')