TaskWeaver / executor /actions /fill_action.py
PocketSkye's picture
Initial deployment
0242ab2
Raw
History Blame Contribute Delete
374 Bytes
from executor.action_registry import (
ACTION_REGISTRY
)
"""{
"action": "fill",
"selector": "#email",
"value": "abc@test.com"
}"""
async def execute(
page,
step
):
await page.fill(
step["selector"],
step["value"]
)
return {
"action": "fill",
"status": "success"
}
ACTION_REGISTRY["fill"] = execute