use single press instead of press sequentially (#3310)
This commit is contained in:
@@ -31,7 +31,8 @@ async def input_sequentially(locator: Locator, text: str, timeout: float = setti
|
||||
await locator.fill(text[: length - TEXT_PRESS_MAX_LENGTH], timeout=timeout)
|
||||
text = text[length - TEXT_PRESS_MAX_LENGTH :]
|
||||
|
||||
await locator.press_sequentially(text, delay=TEXT_INPUT_DELAY, timeout=timeout)
|
||||
for char in text:
|
||||
await locator.press(char, delay=TEXT_INPUT_DELAY, timeout=timeout)
|
||||
|
||||
|
||||
async def keypress(page: Page, keys: list[str], hold: bool = False, duration: float = 0) -> None:
|
||||
|
||||
Reference in New Issue
Block a user