select_items

def select_items(
self,
items: list,
clear_selected: bool = True,
timeout: int = 30
) -> None

Select multiple options for the target element that can support multiple selections.

Parameters:
items [Required]: list
   Options to be selected.
clear_selected: bool
   whether to clear existing selections, default is True.
timeout: int
   Timeout for the operation, the unit is second, and the default value is 30 seconds.

Returns:
 None

Example:


  • Select multiple items on web element
from clicknium import clicknium as cc, locator, ui
chrome_tab = cc.chrome.open("https://contoso.com")
chrome_tab.find_element(locator.chrome.page.multiselect).select_item({'One', 'Three'})
# as showing below, 'One' and 'Three' are selected.
sample
What are your feelings
Updated on 29 August 2023