diff --git a/tests/test_main.http b/tests/test_main.http index 538bdae..f31dbff 100644 --- a/tests/test_main.http +++ b/tests/test_main.http @@ -49,3 +49,22 @@ Cookie: session_id=b8f770a3-38c2-45f2-944b-2703798e3503; Path=/; SameSite=lax } ### +POST http://127.0.0.1:8000/v1/solve +Accept: application/json +Content-Type: application/json +X-API-Key: +Cookie: session_id=b8f770a3-38c2-45f2-944b-2703798e3503; Path=/; SameSite=lax + + +{ + "url": "http://127.0.0.1:8001/", + "proxy": "-", + "actions": [ + {"type": "fill", "selector": "#username", "value": "webrobo"}, + {"type": "fill", "selector": "#password", "value": "31337"}, + {"type": "click", "selector": "body > form:nth-child(1) > button:nth-child(7)"}, + {"type": "wait_for", "selector": ".user", "timeout": 30} + ] +} + +###