fix select2 multi-select (#656)

This commit is contained in:
LawyZheng
2024-07-29 23:40:13 +08:00
committed by GitHub
parent 8309312956
commit 112269ce1d
2 changed files with 3 additions and 7 deletions

View File

@@ -426,7 +426,7 @@ class Select2Dropdown(AbstractSelectDropdown):
self, index: int, timeout: float = SettingsManager.get_settings().BROWSER_ACTION_TIMEOUT_MS
) -> None:
anchor = await self.__find_anchor(timeout=timeout)
options = anchor.locator("li[role='option']")
options = anchor.locator("ul").locator("li")
await options.nth(index).click(timeout=timeout)