You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example: If you would like to run with a "Headful" browser, you can set the environment variable with ```export HEADLESS=false``` before triggering Hercules.
returnf"{result['detailed_message']}.\n As a consequence of this action, new elements have appeared in view: {dom_changes_detected}. This means that the action of entering text {text_to_enter} is not yet executed and needs further interaction. Get all_fields DOM to complete the interaction."
"List of objects, each containing 'query_selector' and 'text'.",
398
+
List[EnterTextEntry],
399
+
"List of EnterTextEntry objects. An object containing 'query_selector' (DOM selector query using mmid attribute e.g. [mmid='114']) and 'text' (text to enter on the element).",
390
400
] # noqa: UP006
391
401
) ->Annotated[
392
-
List[dict[str, str]],
393
-
"List of dictionaries, each containing 'query_selector' and the result of the operation.",
402
+
List[str],
403
+
"List of results from the entertext operation for each entry.",
394
404
]: # noqa: UP006
395
405
"""
396
406
Enters text into multiple DOM elements using a bulk operation.
397
407
398
408
This function enters text into multiple DOM elements using a bulk operation.
399
-
It takes a list of dictionaries, where each dictionary contains a 'query_selector' and 'text' pair.
409
+
It takes a list of EnterTextEntry objects, where each contains 'query_selector' and 'text' attributes.
400
410
The function internally calls the 'entertext' function to perform the text entry operation for each entry.
401
411
402
412
Args:
403
-
entries: List of objects, each containing 'query_selector' and 'text'.
413
+
entries: List of EnterTextEntry objects.
404
414
405
415
Returns:
406
-
List of dictionaries, each containing 'query_selector' and the result of the operation.
416
+
List of results from the entertext operation for each entry.
0 commit comments