Publish original Headless Browser inputs from 91ca91ae26d6baf84fbc104431f13e577ca41abf (part 7)
f292e7e verified Download definitions/viewer/l2.playwright.json from Lexmount/LexBench-Headless-Browser: direct link, hf CLI and curl.
- Browser
- Download file 6.89 kB
-
https://huggingface.co/datasets/Lexmount/LexBench-Headless-Browser/resolve/main/definitions/viewer/l2.playwright.json
- Command line
-
hf download hf://datasets/Lexmount/LexBench-Headless-Browser/definitions/viewer/l2.playwright.json
-
curl -L -o l2.playwright.json https://huggingface.co/datasets/Lexmount/LexBench-Headless-Browser/resolve/main/definitions/viewer/l2.playwright.json
6.89 kB
| { | |
| "cases": [ | |
| { | |
| "artifact_profile": "l2_standard", | |
| "description": "End-to-end multi-step flow with real Playwright: fill username 'eric' and the access code (the login form's data-code 'k9x2' reversed, never present as a literal), click sign-in (on_framework_main_path pointer click) which navigates to the list page, wait for the item list, click the premium filter, and read #summary. The expected token 'ERIC-57' is composed at runtime from the uppercased username and the sum of premium item points (21+9+27); it appears nowhere in the fixtures.", | |
| "driver": { | |
| "checks": [ | |
| { | |
| "kind": "step_ok", | |
| "label": "goto_ok", | |
| "step": 1 | |
| }, | |
| { | |
| "kind": "step_ok", | |
| "label": "list_page_ready", | |
| "step": 5 | |
| } | |
| ], | |
| "kind": "framework_playwright", | |
| "steps": [ | |
| { | |
| "op": "new_page" | |
| }, | |
| { | |
| "op": "goto", | |
| "url": "{fixture_url}" | |
| }, | |
| { | |
| "op": "fill", | |
| "selector": "#user", | |
| "value": "eric" | |
| }, | |
| { | |
| "op": "fill", | |
| "selector": "#pass", | |
| "value": "2x9k" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#signin" | |
| }, | |
| { | |
| "op": "wait_for_selector", | |
| "selector": "#items" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#premium-filter" | |
| }, | |
| { | |
| "op": "text_content", | |
| "save_as": "answer", | |
| "selector": "#summary" | |
| } | |
| ] | |
| }, | |
| "features": [ | |
| "fw.playwright.page.fill", | |
| "fw.playwright.page.click", | |
| "fw.playwright.page.wait_for_selector", | |
| "fw.playwright.page.text_content", | |
| "cdp.input.insert_text", | |
| "cdp.input.dispatch_mouse_event", | |
| "cdp.page.lifecycle_event", | |
| "cdp.runtime.call_function_on" | |
| ], | |
| "grader": { | |
| "endpoint": "/__grade__/expected_answer", | |
| "kind": "server_side" | |
| }, | |
| "layer": "L2", | |
| "scene": { | |
| "kind": "self_hosted_fixture", | |
| "url": "/v0_3/flow/login" | |
| }, | |
| "subset_id": "l2.playwright", | |
| "tags": [ | |
| "family.flow", | |
| "version.v0_3" | |
| ], | |
| "task_id": "v3_pw_flow_login_filter", | |
| "task_version": 2, | |
| "timeouts": { | |
| "hard_kill_ms": 45000, | |
| "task_ms": 30000 | |
| }, | |
| "title": "real Playwright login -> list -> premium filter" | |
| }, | |
| { | |
| "artifact_profile": "l2_standard", | |
| "description": "End-to-end multi-step flow with real Playwright: on the records fixture, select 'ops' in the department dropdown via the framework's native select path, click apply (on_framework_main_path), and read #stat. The page filters table rows by data-dept and aggregates count and rounded mean from data-score attributes at runtime (62,71,89 -> 'ops:3:74'); the token is never present as a literal.", | |
| "driver": { | |
| "checks": [ | |
| { | |
| "kind": "step_ok", | |
| "label": "goto_ok", | |
| "step": 1 | |
| } | |
| ], | |
| "kind": "framework_playwright", | |
| "steps": [ | |
| { | |
| "op": "new_page" | |
| }, | |
| { | |
| "op": "goto", | |
| "url": "{fixture_url}" | |
| }, | |
| { | |
| "op": "select_option", | |
| "selector": "#dept-filter", | |
| "value": "ops" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#apply" | |
| }, | |
| { | |
| "op": "text_content", | |
| "save_as": "answer", | |
| "selector": "#stat" | |
| } | |
| ] | |
| }, | |
| "features": [ | |
| "fw.playwright.page.select_option", | |
| "fw.playwright.page.click", | |
| "fw.playwright.page.text_content", | |
| "cdp.input.dispatch_mouse_event", | |
| "cdp.runtime.call_function_on" | |
| ], | |
| "grader": { | |
| "endpoint": "/__grade__/expected_answer", | |
| "kind": "server_side" | |
| }, | |
| "layer": "L2", | |
| "scene": { | |
| "kind": "self_hosted_fixture", | |
| "url": "/v0_3/flow/records" | |
| }, | |
| "subset_id": "l2.playwright", | |
| "tags": [ | |
| "family.flow", | |
| "version.v0_3" | |
| ], | |
| "task_id": "v3_pw_flow_records_stat", | |
| "task_version": 2, | |
| "timeouts": { | |
| "hard_kill_ms": 45000, | |
| "task_ms": 30000 | |
| }, | |
| "title": "real Playwright select filter -> aggregated stat" | |
| }, | |
| { | |
| "artifact_profile": "l2_standard", | |
| "description": "End-to-end multi-step flow with real Playwright: on the paged shop fixture, add gamma on page 1, click next, add keyboard on page 2, click next, add lamp on page 3, then read #cart-total. All clicks ride the real pointer path (on_framework_main_path) and the page re-renders its catalog on every page turn, so stale element handling matters. The expected total '17.40' emerges from cents accumulation (450+990+300)/100 and exists nowhere as a literal in the fixture.", | |
| "driver": { | |
| "checks": [ | |
| { | |
| "kind": "step_ok", | |
| "label": "goto_ok", | |
| "step": 1 | |
| } | |
| ], | |
| "kind": "framework_playwright", | |
| "steps": [ | |
| { | |
| "op": "new_page" | |
| }, | |
| { | |
| "op": "goto", | |
| "url": "{fixture_url}" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#add-gamma" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#next-page" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#add-keyboard" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#next-page" | |
| }, | |
| { | |
| "op": "click", | |
| "selector": "#add-lamp" | |
| }, | |
| { | |
| "op": "text_content", | |
| "save_as": "answer", | |
| "selector": "#cart-total" | |
| } | |
| ] | |
| }, | |
| "features": [ | |
| "fw.playwright.page.click", | |
| "fw.playwright.page.text_content", | |
| "cdp.input.dispatch_mouse_event", | |
| "cdp.dom.get_content_quads", | |
| "cdp.dom.scroll_into_view_if_needed", | |
| "cdp.runtime.call_function_on" | |
| ], | |
| "grader": { | |
| "endpoint": "/__grade__/expected_answer", | |
| "kind": "server_side" | |
| }, | |
| "layer": "L2", | |
| "scene": { | |
| "kind": "self_hosted_fixture", | |
| "url": "/v0_3/flow/shop" | |
| }, | |
| "subset_id": "l2.playwright", | |
| "tags": [ | |
| "family.flow", | |
| "version.v0_3" | |
| ], | |
| "task_id": "v3_pw_flow_shop_cart", | |
| "task_version": 2, | |
| "timeouts": { | |
| "hard_kill_ms": 45000, | |
| "task_ms": 30000 | |
| }, | |
| "title": "real Playwright paged shop add-to-cart across three pages" | |
| } | |
| ] | |
| } | |