File size: 327 Bytes
0242ab2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from executor.action_registry import (
    ACTION_REGISTRY
)
"""{
    "action": "click",
    "selector": "#submit"
}"""

async def execute(
    page,
    step
):

    await page.click(
        step["selector"]
    )

    return {
        "action": "click",
        "status": "success"
    }


ACTION_REGISTRY["click"] = execute