Skip to content

Commit 1bfde25

Browse files
committed
fix(elements): forward humanize flag to click in type_text
The focus click before typing was always non-humanized even when humanize=True was passed to type_text
1 parent 7247fc9 commit 1bfde25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydoll/elements/web_element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ async def type_text(
711711
interval: Deprecated. Use humanize=True instead.
712712
"""
713713
logger.info(f'Typing text (length={len(text)}, humanize={humanize})')
714-
await self.click()
714+
await self.click(humanize=humanize)
715715
keyboard = self._get_keyboard()
716716
await keyboard.type_text(text, humanize=humanize, interval=interval)
717717

0 commit comments

Comments
 (0)