playwright-rust 0.50.0a3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- playwright_rust-0.50.0a3/.github/workflows/arm64-wheels.yml +254 -0
- playwright_rust-0.50.0a3/.gitignore +165 -0
- playwright_rust-0.50.0a3/API_CATALOG.html +26 -0
- playwright_rust-0.50.0a3/API_CONCURRENCY_COVERAGE.json +17437 -0
- playwright_rust-0.50.0a3/API_PRUNING_AUDIT.html +5 -0
- playwright_rust-0.50.0a3/API_REFERENCE.md +1161 -0
- playwright_rust-0.50.0a3/AUDIT_REPORT.md +129 -0
- playwright_rust-0.50.0a3/CAPABILITIES.md +559 -0
- playwright_rust-0.50.0a3/CROSS_OS_TEST_REPORT.md +95 -0
- playwright_rust-0.50.0a3/Cargo.lock +2023 -0
- playwright_rust-0.50.0a3/Cargo.toml +47 -0
- playwright_rust-0.50.0a3/DEVELOPMENT_BASELINE.md +692 -0
- playwright_rust-0.50.0a3/MOBILE_CAPABILITY_REPORT.md +172 -0
- playwright_rust-0.50.0a3/PKG-INFO +646 -0
- playwright_rust-0.50.0a3/README.md +629 -0
- playwright_rust-0.50.0a3/RUYITRACE_AUTOMATION_BASELINE.md +167 -0
- playwright_rust-0.50.0a3/TBROWSER.md +391 -0
- playwright_rust-0.50.0a3/TBROWSER_CAPABILITY_REPORT.md +88 -0
- playwright_rust-0.50.0a3/TBROWSER_WORK_CHECKPOINT.md +108 -0
- playwright_rust-0.50.0a3/docs/current-snapshot.md +96 -0
- playwright_rust-0.50.0a3/docs/navigation-dispose-fix.md +49 -0
- playwright_rust-0.50.0a3/docs/tbrowser-desktop-evidence.md +58 -0
- playwright_rust-0.50.0a3/docs/tbrowser-downloads.md +140 -0
- playwright_rust-0.50.0a3/docs/tbrowser-null-context-evidence.md +38 -0
- playwright_rust-0.50.0a3/docs/tbrowser-permission-query-evidence.md +49 -0
- playwright_rust-0.50.0a3/docs/tbrowser-shutdown-contract.md +107 -0
- playwright_rust-0.50.0a3/docs/tbrowser-stage-status.md +122 -0
- playwright_rust-0.50.0a3/docs/tbrowser-startup-contract.md +74 -0
- playwright_rust-0.50.0a3/docs/tbrowser-threading.md +147 -0
- playwright_rust-0.50.0a3/docs/tbrowser-validation.md +90 -0
- playwright_rust-0.50.0a3/docs/tbrowser-wheel-dispatch.md +97 -0
- playwright_rust-0.50.0a3/patches/firefox-juggler-browser-context.patch +13 -0
- playwright_rust-0.50.0a3/patches/firefox-juggler-reconnect-state.patch +85 -0
- playwright_rust-0.50.0a3/pyproject.toml +39 -0
- playwright_rust-0.50.0a3/python/playwright_rust/__init__.py +80 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_browser_binary.py +232 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_chrome_profile.py +311 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_dispatch.py +107 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_element_recording.py +523 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_gst_recording.py +222 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_human_motion.py +71 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_media_runtime.py +78 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_sync_core.py +4966 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_version.py +2 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_visual_change.py +124 -0
- playwright_rust-0.50.0a3/python/playwright_rust/_visual_element.py +445 -0
- playwright_rust-0.50.0a3/python/playwright_rust/async_api.py +2536 -0
- playwright_rust-0.50.0a3/python/playwright_rust/downloads.py +62 -0
- playwright_rust-0.50.0a3/python/playwright_rust/mobile.py +185 -0
- playwright_rust-0.50.0a3/python/playwright_rust/py.typed +0 -0
- playwright_rust-0.50.0a3/python/playwright_rust/sync_api.py +250 -0
- playwright_rust-0.50.0a3/python/playwright_rust/tbrowser.py +3361 -0
- playwright_rust-0.50.0a3/python/playwright_rust/trace.py +402 -0
- playwright_rust-0.50.0a3/skills/playwright-rust/SKILL.md +66 -0
- playwright_rust-0.50.0a3/skills/playwright-rust/agents/openai.yaml +4 -0
- playwright_rust-0.50.0a3/skills/playwright-rust/references/capabilities.md +60 -0
- playwright_rust-0.50.0a3/skills/playwright-rust/references/concurrency-input.md +73 -0
- playwright_rust-0.50.0a3/skills/playwright-rust/references/installation-evidence.md +65 -0
- playwright_rust-0.50.0a3/skills/playwright-rust/references/network-events.md +39 -0
- playwright_rust-0.50.0a3/skills/playwright-rust/references/recording.md +47 -0
- playwright_rust-0.50.0a3/src/cdp_connection_tests.rs +186 -0
- playwright_rust-0.50.0a3/src/cdp_handshake.rs +114 -0
- playwright_rust-0.50.0a3/src/chromium_deep.rs +1667 -0
- playwright_rust-0.50.0a3/src/core_mode.rs +21748 -0
- playwright_rust-0.50.0a3/src/firefox_rdp.rs +2267 -0
- playwright_rust-0.50.0a3/src/human_motion.rs +335 -0
- playwright_rust-0.50.0a3/src/lib.rs +19 -0
- playwright_rust-0.50.0a3/src/native_cursor.rs +669 -0
- playwright_rust-0.50.0a3/src/proxy_gateway.rs +1549 -0
- playwright_rust-0.50.0a3/src/session_lifecycle.rs +318 -0
- playwright_rust-0.50.0a3/src/storage_state.rs +146 -0
- playwright_rust-0.50.0a3/src/tbrowser.rs +3080 -0
- playwright_rust-0.50.0a3/src/visual_match.rs +641 -0
- playwright_rust-0.50.0a3/tests/audit_protocol_config.py +124 -0
- playwright_rust-0.50.0a3/tests/cross_os_contract.py +191 -0
- playwright_rust-0.50.0a3/tests/firefox_rdp_module.rs +569 -0
- playwright_rust-0.50.0a3/tests/fixtures/webview2_host/Program.cs +79 -0
- playwright_rust-0.50.0a3/tests/run_api_concurrency_contract.py +73 -0
- playwright_rust-0.50.0a3/tests/run_api_reference_contract.py +188 -0
- playwright_rust-0.50.0a3/tests/run_async_websocket_drain.py +306 -0
- playwright_rust-0.50.0a3/tests/run_audit_core_contract.py +88 -0
- playwright_rust-0.50.0a3/tests/run_audit_python_contract.py +432 -0
- playwright_rust-0.50.0a3/tests/run_browser_process_cleanup.py +147 -0
- playwright_rust-0.50.0a3/tests/run_chaos_frontend_dom.py +893 -0
- playwright_rust-0.50.0a3/tests/run_chaos_frontend_lifecycle.py +976 -0
- playwright_rust-0.50.0a3/tests/run_chaos_frontend_network.py +1038 -0
- playwright_rust-0.50.0a3/tests/run_chrome_cdp_export_live.py +60 -0
- playwright_rust-0.50.0a3/tests/run_chrome_humanized_input.py +187 -0
- playwright_rust-0.50.0a3/tests/run_chrome_profile_launch_live.py +76 -0
- playwright_rust-0.50.0a3/tests/run_chrome_profile_live.py +46 -0
- playwright_rust-0.50.0a3/tests/run_cookie_baseline_compat_live.py +102 -0
- playwright_rust-0.50.0a3/tests/run_cookie_json_transfer_live.py +80 -0
- playwright_rust-0.50.0a3/tests/run_cross_os_chaos.py +667 -0
- playwright_rust-0.50.0a3/tests/run_deep_dynamic_geometry.py +678 -0
- playwright_rust-0.50.0a3/tests/run_deep_locator.py +671 -0
- playwright_rust-0.50.0a3/tests/run_deep_nested_topology.py +374 -0
- playwright_rust-0.50.0a3/tests/run_deep_semantics_forms.py +432 -0
- playwright_rust-0.50.0a3/tests/run_dispatch_async_live.py +48 -0
- playwright_rust-0.50.0a3/tests/run_dispatch_churn_live.py +171 -0
- playwright_rust-0.50.0a3/tests/run_dispatch_overflow_live.py +39 -0
- playwright_rust-0.50.0a3/tests/run_dispatch_saturation_live.py +85 -0
- playwright_rust-0.50.0a3/tests/run_edge_async_all_apis.py +1010 -0
- playwright_rust-0.50.0a3/tests/run_element_recording_contract.py +142 -0
- playwright_rust-0.50.0a3/tests/run_element_recording_live.py +447 -0
- playwright_rust-0.50.0a3/tests/run_event_subscription_live.py +184 -0
- playwright_rust-0.50.0a3/tests/run_fingerprint_sites.py +88 -0
- playwright_rust-0.50.0a3/tests/run_firefox_auto_remote.py +110 -0
- playwright_rust-0.50.0a3/tests/run_firefox_devtools_manifest_check.py +75 -0
- playwright_rust-0.50.0a3/tests/run_firefox_fingerprint_sites.py +56 -0
- playwright_rust-0.50.0a3/tests/run_firefox_humanized_input.py +114 -0
- playwright_rust-0.50.0a3/tests/run_firefox_remote_connect.py +133 -0
- playwright_rust-0.50.0a3/tests/run_focus_observability_live.py +92 -0
- playwright_rust-0.50.0a3/tests/run_hidden_action_scope_live.py +209 -0
- playwright_rust-0.50.0a3/tests/run_hidden_keepalive_probe.py +148 -0
- playwright_rust-0.50.0a3/tests/run_human_click_async_safety.py +64 -0
- playwright_rust-0.50.0a3/tests/run_human_click_firefox_matrix.py +71 -0
- playwright_rust-0.50.0a3/tests/run_human_click_oopif_safety.py +129 -0
- playwright_rust-0.50.0a3/tests/run_human_click_ruyipage_style.py +125 -0
- playwright_rust-0.50.0a3/tests/run_human_default_modes.py +126 -0
- playwright_rust-0.50.0a3/tests/run_human_motion_contract.py +42 -0
- playwright_rust-0.50.0a3/tests/run_input_focus_live.py +209 -0
- playwright_rust-0.50.0a3/tests/run_input_no_capture_live.py +78 -0
- playwright_rust-0.50.0a3/tests/run_input_outcome_live.py +384 -0
- playwright_rust-0.50.0a3/tests/run_input_overlay_isolation_live.py +121 -0
- playwright_rust-0.50.0a3/tests/run_input_staircase_live.py +232 -0
- playwright_rust-0.50.0a3/tests/run_js_correctness_oracle.py +735 -0
- playwright_rust-0.50.0a3/tests/run_linux_official_firefox.py +119 -0
- playwright_rust-0.50.0a3/tests/run_linux_rust_firefox_pipe.py +135 -0
- playwright_rust-0.50.0a3/tests/run_linux_v050_resources.py +306 -0
- playwright_rust-0.50.0a3/tests/run_minimal_recording_probe.py +270 -0
- playwright_rust-0.50.0a3/tests/run_native_cleanup_live.py +148 -0
- playwright_rust-0.50.0a3/tests/run_navigation_dispose.py +57 -0
- playwright_rust-0.50.0a3/tests/run_network_close_live.py +116 -0
- playwright_rust-0.50.0a3/tests/run_network_interception_practical.py +950 -0
- playwright_rust-0.50.0a3/tests/run_network_lifecycle_live.py +130 -0
- playwright_rust-0.50.0a3/tests/run_official_playwright_firefox_human_motion.py +102 -0
- playwright_rust-0.50.0a3/tests/run_page_crash_input_native_live.py +63 -0
- playwright_rust-0.50.0a3/tests/run_page_crash_live.py +226 -0
- playwright_rust-0.50.0a3/tests/run_page_crash_native_live.py +182 -0
- playwright_rust-0.50.0a3/tests/run_page_crash_recording_live.py +113 -0
- playwright_rust-0.50.0a3/tests/run_page_crash_route_native_live.py +44 -0
- playwright_rust-0.50.0a3/tests/run_partition_cookie_live.py +62 -0
- playwright_rust-0.50.0a3/tests/run_playwright_proxy_browser.py +1378 -0
- playwright_rust-0.50.0a3/tests/run_proxy_hot_switch.py +218 -0
- playwright_rust-0.50.0a3/tests/run_recording_input_mixed_live.py +105 -0
- playwright_rust-0.50.0a3/tests/run_recording_primary_live.py +99 -0
- playwright_rust-0.50.0a3/tests/run_recording_resolution_live.py +70 -0
- playwright_rust-0.50.0a3/tests/run_recording_shared_lifecycle_live.py +85 -0
- playwright_rust-0.50.0a3/tests/run_recording_shared_live.py +115 -0
- playwright_rust-0.50.0a3/tests/run_request_notification_live.py +37 -0
- playwright_rust-0.50.0a3/tests/run_roi_capture_scope_live.py +309 -0
- playwright_rust-0.50.0a3/tests/run_rust_playwright_concurrency.py +150 -0
- playwright_rust-0.50.0a3/tests/run_rust_playwright_core.py +1667 -0
- playwright_rust-0.50.0a3/tests/run_scaled_viewport_capture_live.py +320 -0
- playwright_rust-0.50.0a3/tests/run_screenshot_focus_live.py +88 -0
- playwright_rust-0.50.0a3/tests/run_session_lifecycle_live.py +244 -0
- playwright_rust-0.50.0a3/tests/run_startup_failure_live.py +35 -0
- playwright_rust-0.50.0a3/tests/run_startup_success_live.py +70 -0
- playwright_rust-0.50.0a3/tests/run_storage_state_full.py +207 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_close_probe.py +58 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_content.py +98 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_context_settings.py +77 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_headers_matrix.py +52 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_headers_probe.py +151 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_history_probe.py +188 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_matrix.py +2023 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_permissions.py +100 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_storage_partition.py +119 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_storage_probe.py +178 -0
- playwright_rust-0.50.0a3/tests/run_tbrowser_tags.py +129 -0
- playwright_rust-0.50.0a3/tests/run_ultra_low_recording_live.py +72 -0
- playwright_rust-0.50.0a3/tests/run_v046_fingerprint_modes.py +339 -0
- playwright_rust-0.50.0a3/tests/run_v047_embedded_deep.py +468 -0
- playwright_rust-0.50.0a3/tests/run_v047_embedded_modes.py +342 -0
- playwright_rust-0.50.0a3/tests/run_v049_rust_cpu_benchmark.py +145 -0
- playwright_rust-0.50.0a3/tests/run_visual_change_contract.py +114 -0
- playwright_rust-0.50.0a3/tests/run_visual_element.py +596 -0
- playwright_rust-0.50.0a3/tests/run_visual_element_contract.py +157 -0
- playwright_rust-0.50.0a3/tests/run_websocket_route.py +75 -0
- playwright_rust-0.50.0a3/tests/run_worker_evaluate_isolation_live.py +43 -0
- playwright_rust-0.50.0a3/tests/run_worker_lifecycle_live.py +95 -0
- playwright_rust-0.50.0a3/tests/run_worker_oopif_live.py +100 -0
- playwright_rust-0.50.0a3/tests/tbrowser_candidate.py +61 -0
- playwright_rust-0.50.0a3/tests/test_audit_fixes.py +98 -0
- playwright_rust-0.50.0a3/tests/test_chrome_export_popup.mjs +46 -0
- playwright_rust-0.50.0a3/tests/test_chrome_extension.mjs +52 -0
- playwright_rust-0.50.0a3/tests/test_chrome_profile.py +125 -0
- playwright_rust-0.50.0a3/tests/test_dispatch_bounds.py +193 -0
- playwright_rust-0.50.0a3/tests/test_download_verification.py +123 -0
- playwright_rust-0.50.0a3/tests/test_frame_detach_state.py +54 -0
- playwright_rust-0.50.0a3/tests/test_gst_initialization.py +58 -0
- playwright_rust-0.50.0a3/tests/test_gst_recording.py +184 -0
- playwright_rust-0.50.0a3/tests/test_handle_dispose_pending.py +86 -0
- playwright_rust-0.50.0a3/tests/test_history_observer_cleanup.py +75 -0
- playwright_rust-0.50.0a3/tests/test_input_owner_contract.py +132 -0
- playwright_rust-0.50.0a3/tests/test_launch_timing.py +50 -0
- playwright_rust-0.50.0a3/tests/test_mobile.py +199 -0
- playwright_rust-0.50.0a3/tests/test_page_crash.py +231 -0
- playwright_rust-0.50.0a3/tests/test_page_input_owner.py +111 -0
- playwright_rust-0.50.0a3/tests/test_recording_shared.py +187 -0
- playwright_rust-0.50.0a3/tests/test_remote_cdp_contexts.py +55 -0
- playwright_rust-0.50.0a3/tests/test_session_lifecycle.py +28 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_candidate.py +43 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_create_response.py +162 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_download_scope.py +146 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_focus_interleaving.py +68 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_handle_target.py +101 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_input_interleaving.py +135 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_page_close_ack.py +145 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_page_input_state.py +37 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_prompt_ownership.py +113 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_request_consume.py +83 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_response_consume.py +120 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_thread_commands.py +426 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_upload_boundary.py +49 -0
- playwright_rust-0.50.0a3/tests/test_tbrowser_wheel_contract.py +40 -0
- playwright_rust-0.50.0a3/tests/test_trace_capture.py +248 -0
- playwright_rust-0.50.0a3/tests/test_trace_prototype_chain.py +88 -0
- playwright_rust-0.50.0a3/tests/test_worker_lifecycle.py +95 -0
- playwright_rust-0.50.0a3/tools/build_linux_media_wheel.py +28 -0
- playwright_rust-0.50.0a3/tools/build_media_wheel.py +126 -0
- playwright_rust-0.50.0a3/tools/chrome-state-exporter/README.md +33 -0
- playwright_rust-0.50.0a3/tools/chrome-state-exporter/manifest.json +20 -0
- playwright_rust-0.50.0a3/tools/chrome-state-exporter/popup.html +18 -0
- playwright_rust-0.50.0a3/tools/chrome-state-exporter/popup.mjs +46 -0
- playwright_rust-0.50.0a3/tools/chrome-state-exporter/state.mjs +65 -0
- playwright_rust-0.50.0a3/tools/generate_api_catalog.py +197 -0
- playwright_rust-0.50.0a3/tools/generate_api_pruning_audit.py +175 -0
- playwright_rust-0.50.0a3/tools/prepare_linux_media_runtime.py +53 -0
- playwright_rust-0.50.0a3/tools/probe_native_cursor.py +168 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
name: ARM64 Wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- build/v050-arm64
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- build/v050-arm64
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: arm64-wheels-${{ github.ref }}
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
runtime-x64:
|
|
21
|
+
name: JS Runtime x64
|
|
22
|
+
runs-on: ubuntu-24.04
|
|
23
|
+
timeout-minutes: 45
|
|
24
|
+
env:
|
|
25
|
+
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.pw-browsers
|
|
26
|
+
steps:
|
|
27
|
+
- name: Check out source
|
|
28
|
+
uses: actions/checkout@v6
|
|
29
|
+
|
|
30
|
+
- name: Set up Python
|
|
31
|
+
uses: actions/setup-python@v6
|
|
32
|
+
with:
|
|
33
|
+
python-version: "3.13"
|
|
34
|
+
cache: pip
|
|
35
|
+
|
|
36
|
+
- name: Set up Rust
|
|
37
|
+
uses: dtolnay/rust-toolchain@stable
|
|
38
|
+
with:
|
|
39
|
+
components: rustfmt
|
|
40
|
+
|
|
41
|
+
- name: Set up Node
|
|
42
|
+
uses: actions/setup-node@v6
|
|
43
|
+
with:
|
|
44
|
+
node-version: "24"
|
|
45
|
+
|
|
46
|
+
- name: Install build tools
|
|
47
|
+
run: python -m pip install "maturin==1.15.0"
|
|
48
|
+
|
|
49
|
+
- name: Run static and contract checks
|
|
50
|
+
run: |
|
|
51
|
+
cargo fmt --check
|
|
52
|
+
cargo test --locked --lib
|
|
53
|
+
cargo test --locked --test firefox_rdp_module
|
|
54
|
+
|
|
55
|
+
- name: Build and install x64 wheel
|
|
56
|
+
run: |
|
|
57
|
+
maturin build --release --locked --out dist
|
|
58
|
+
wheel="$(find dist -maxdepth 1 -name '*.whl' -print -quit)"
|
|
59
|
+
test -n "$wheel"
|
|
60
|
+
python -m pip install --force-reinstall "$wheel"
|
|
61
|
+
python -c "import playwright_rust; assert playwright_rust.__version__ == '0.50.0a3'"
|
|
62
|
+
|
|
63
|
+
- name: Run source and wheel contracts
|
|
64
|
+
run: |
|
|
65
|
+
python tests/run_audit_core_contract.py
|
|
66
|
+
python tests/run_audit_python_contract.py
|
|
67
|
+
python tests/run_visual_change_contract.py
|
|
68
|
+
python tests/run_visual_element_contract.py
|
|
69
|
+
python tests/run_human_motion_contract.py
|
|
70
|
+
python tests/run_api_reference_contract.py
|
|
71
|
+
python tests/audit_protocol_config.py
|
|
72
|
+
python tests/cross_os_contract.py
|
|
73
|
+
python -c "from playwright_rust import VisualBox, VisualChange, VisualComparison, VisualElement, VisualElementStale, VisualNotFound; from playwright_rust._native import match_template_rgb; result = match_template_rgb(bytes((255, 0, 0)), 1, 1, bytes((255, 0, 0, 255)), 1, 1); assert result['best']['confidencePercent'] == 100.0"
|
|
74
|
+
|
|
75
|
+
- name: Install pinned browsers
|
|
76
|
+
run: |
|
|
77
|
+
curl --fail --location --retry 3 \
|
|
78
|
+
https://storage.googleapis.com/chrome-for-testing-public/151.0.7922.174/linux64/chrome-linux64.zip \
|
|
79
|
+
--output "${RUNNER_TEMP}/chrome.zip"
|
|
80
|
+
unzip -q "${RUNNER_TEMP}/chrome.zip" -d "${RUNNER_TEMP}/chrome"
|
|
81
|
+
npx --yes playwright@1.60.0 install --with-deps firefox
|
|
82
|
+
chromium="${RUNNER_TEMP}/chrome/chrome-linux64/chrome"
|
|
83
|
+
firefox="$(find "${PLAYWRIGHT_BROWSERS_PATH}" -path '*/firefox/firefox' -type f -print -quit)"
|
|
84
|
+
test -x "$chromium"
|
|
85
|
+
test -n "$firefox"
|
|
86
|
+
test -x "$firefox"
|
|
87
|
+
"$chromium" --version
|
|
88
|
+
"$firefox" --version
|
|
89
|
+
echo "PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE=$chromium" >> "$GITHUB_ENV"
|
|
90
|
+
echo "PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE=$firefox" >> "$GITHUB_ENV"
|
|
91
|
+
|
|
92
|
+
- name: Run Chromium JavaScript oracle
|
|
93
|
+
run: timeout 12m python tests/run_js_correctness_oracle.py --browser chromium
|
|
94
|
+
|
|
95
|
+
- name: Run Firefox JavaScript oracle
|
|
96
|
+
run: timeout 12m python tests/run_js_correctness_oracle.py --browser firefox
|
|
97
|
+
|
|
98
|
+
- name: Run offline deep Locator contracts
|
|
99
|
+
run: |
|
|
100
|
+
timeout 12m python tests/run_deep_locator.py \
|
|
101
|
+
--engine chrome --mode both \
|
|
102
|
+
--chrome-path "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE"
|
|
103
|
+
timeout 12m python tests/run_deep_locator.py \
|
|
104
|
+
--engine firefox --mode both \
|
|
105
|
+
--firefox-path "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE"
|
|
106
|
+
|
|
107
|
+
- name: Run complex deep and network contracts
|
|
108
|
+
run: |
|
|
109
|
+
for script in run_deep_nested_topology.py run_deep_dynamic_geometry.py run_deep_semantics_forms.py; do
|
|
110
|
+
timeout 12m python "tests/$script" \
|
|
111
|
+
--engine chrome --mode both \
|
|
112
|
+
--chrome-path "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE"
|
|
113
|
+
timeout 12m python "tests/$script" \
|
|
114
|
+
--engine firefox --mode both \
|
|
115
|
+
--firefox-path "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE"
|
|
116
|
+
done
|
|
117
|
+
timeout 12m python tests/run_network_interception_practical.py \
|
|
118
|
+
--engine chrome --mode both \
|
|
119
|
+
--executable "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE" \
|
|
120
|
+
--artifact-dir "${RUNNER_TEMP}/network-chrome"
|
|
121
|
+
timeout 12m python tests/run_network_interception_practical.py \
|
|
122
|
+
--engine firefox --mode both \
|
|
123
|
+
--executable "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE" \
|
|
124
|
+
--artifact-dir "${RUNNER_TEMP}/network-firefox"
|
|
125
|
+
|
|
126
|
+
- name: Run deterministic hostile frontend contracts
|
|
127
|
+
run: |
|
|
128
|
+
timeout 12m python tests/run_chaos_frontend_dom.py \
|
|
129
|
+
--engine chrome --mode sync --seed 20260904 --iterations 30 \
|
|
130
|
+
--chrome-path "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE"
|
|
131
|
+
timeout 12m python tests/run_chaos_frontend_dom.py \
|
|
132
|
+
--engine firefox --mode async --seed 20260904 --iterations 30 \
|
|
133
|
+
--firefox-path "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE"
|
|
134
|
+
timeout 12m python tests/run_chaos_frontend_network.py \
|
|
135
|
+
--engine chrome --mode sync --seed 20260904 --rounds 1 \
|
|
136
|
+
--executable "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE" \
|
|
137
|
+
--artifact-dir "${RUNNER_TEMP}/chaos-network-chrome"
|
|
138
|
+
timeout 12m python tests/run_chaos_frontend_network.py \
|
|
139
|
+
--engine firefox --mode async --seed 20260904 --rounds 1 \
|
|
140
|
+
--executable "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE" \
|
|
141
|
+
--artifact-dir "${RUNNER_TEMP}/chaos-network-firefox"
|
|
142
|
+
timeout 12m python tests/run_chaos_frontend_lifecycle.py \
|
|
143
|
+
--engine chrome --mode sync --seed 20260904 --churn-rounds 10 \
|
|
144
|
+
--artifact-dir "${RUNNER_TEMP}/chaos-lifecycle-chrome" \
|
|
145
|
+
--chrome-path "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE"
|
|
146
|
+
timeout 12m python tests/run_chaos_frontend_lifecycle.py \
|
|
147
|
+
--engine firefox --mode async --seed 20260904 --churn-rounds 10 \
|
|
148
|
+
--artifact-dir "${RUNNER_TEMP}/chaos-lifecycle-firefox" \
|
|
149
|
+
--firefox-path "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE"
|
|
150
|
+
timeout 12m python tests/run_async_websocket_drain.py \
|
|
151
|
+
--engine chrome --rounds 1 --seed 20260904 \
|
|
152
|
+
--executable "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE"
|
|
153
|
+
timeout 12m python tests/run_async_websocket_drain.py \
|
|
154
|
+
--engine firefox --rounds 1 --seed 20260904 \
|
|
155
|
+
--executable "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE"
|
|
156
|
+
|
|
157
|
+
- name: Run Chromium and Firefox VisualElement acceptance
|
|
158
|
+
run: |
|
|
159
|
+
timeout 12m python tests/run_visual_element.py \
|
|
160
|
+
--backend chrome --backend firefox \
|
|
161
|
+
--chrome-executable "$PLAYWRIGHT_RUST_CHROMIUM_EXECUTABLE" \
|
|
162
|
+
--firefox-executable "$PLAYWRIGHT_RUST_FIREFOX_EXECUTABLE"
|
|
163
|
+
|
|
164
|
+
windows-arm64:
|
|
165
|
+
name: Windows ARM64
|
|
166
|
+
needs: runtime-x64
|
|
167
|
+
runs-on: windows-11-arm
|
|
168
|
+
timeout-minutes: 60
|
|
169
|
+
steps:
|
|
170
|
+
- name: 检出源码
|
|
171
|
+
uses: actions/checkout@v6
|
|
172
|
+
|
|
173
|
+
- name: 安装 ARM64 Python
|
|
174
|
+
uses: actions/setup-python@v6
|
|
175
|
+
with:
|
|
176
|
+
python-version: "3.13"
|
|
177
|
+
architecture: arm64
|
|
178
|
+
cache: pip
|
|
179
|
+
|
|
180
|
+
- name: 构建 Windows ARM64 Wheel
|
|
181
|
+
uses: PyO3/maturin-action@v1
|
|
182
|
+
with:
|
|
183
|
+
command: build
|
|
184
|
+
target: aarch64-pc-windows-msvc
|
|
185
|
+
maturin-version: v1.15.0
|
|
186
|
+
args: --release --locked --out dist
|
|
187
|
+
|
|
188
|
+
- name: 安装并验证 Windows ARM64 Wheel
|
|
189
|
+
shell: pwsh
|
|
190
|
+
run: |
|
|
191
|
+
$wheel = Get-ChildItem "dist\*win_arm64.whl" | Select-Object -First 1
|
|
192
|
+
if (-not $wheel) { throw "没有生成 win_arm64 Wheel" }
|
|
193
|
+
python -m pip install --force-reinstall $wheel.FullName
|
|
194
|
+
python -c "import platform, playwright_rust; from playwright_rust import VisualBox, VisualChange, VisualComparison, VisualElement, VisualElementStale, VisualNotFound; from playwright_rust._native import match_template_rgb; result = match_template_rgb(bytes((255, 0, 0)), 1, 1, bytes((255, 0, 0, 255)), 1, 1); assert result['best']['confidencePercent'] == 100.0; assert platform.machine().lower() in ('arm64', 'aarch64'); assert playwright_rust.__version__ == '0.50.0a3'; print('WINDOWS_ARM64_WHEEL=PASS', platform.machine(), playwright_rust.__version__)"
|
|
195
|
+
|
|
196
|
+
- name: 上传 Windows ARM64 Wheel
|
|
197
|
+
uses: actions/upload-artifact@v7
|
|
198
|
+
with:
|
|
199
|
+
name: playwright-rust-windows-arm64
|
|
200
|
+
path: dist/*win_arm64.whl
|
|
201
|
+
if-no-files-found: error
|
|
202
|
+
retention-days: 30
|
|
203
|
+
|
|
204
|
+
linux-arm64-build:
|
|
205
|
+
name: Linux ARM64 Build
|
|
206
|
+
needs: runtime-x64
|
|
207
|
+
runs-on: ubuntu-24.04
|
|
208
|
+
timeout-minutes: 60
|
|
209
|
+
steps:
|
|
210
|
+
- name: 检出源码
|
|
211
|
+
uses: actions/checkout@v6
|
|
212
|
+
|
|
213
|
+
- name: 构建 Linux ARM64 Wheel
|
|
214
|
+
uses: PyO3/maturin-action@v1
|
|
215
|
+
with:
|
|
216
|
+
command: build
|
|
217
|
+
target: aarch64-unknown-linux-gnu
|
|
218
|
+
manylinux: "2_28"
|
|
219
|
+
maturin-version: v1.15.0
|
|
220
|
+
args: --release --locked --out dist
|
|
221
|
+
|
|
222
|
+
- name: 上传 Linux ARM64 Wheel
|
|
223
|
+
uses: actions/upload-artifact@v7
|
|
224
|
+
with:
|
|
225
|
+
name: playwright-rust-linux-arm64
|
|
226
|
+
path: dist/*manylinux*_aarch64.whl
|
|
227
|
+
if-no-files-found: error
|
|
228
|
+
retention-days: 30
|
|
229
|
+
|
|
230
|
+
linux-arm64-verify:
|
|
231
|
+
name: Linux ARM64 Verify
|
|
232
|
+
needs: linux-arm64-build
|
|
233
|
+
runs-on: ubuntu-24.04-arm
|
|
234
|
+
timeout-minutes: 20
|
|
235
|
+
steps:
|
|
236
|
+
- name: 安装 ARM64 Python
|
|
237
|
+
uses: actions/setup-python@v6
|
|
238
|
+
with:
|
|
239
|
+
python-version: "3.13"
|
|
240
|
+
architecture: arm64
|
|
241
|
+
|
|
242
|
+
- name: 下载 Linux ARM64 Wheel
|
|
243
|
+
uses: actions/download-artifact@v8
|
|
244
|
+
with:
|
|
245
|
+
name: playwright-rust-linux-arm64
|
|
246
|
+
path: dist
|
|
247
|
+
|
|
248
|
+
- name: 安装并验证 Linux ARM64 Wheel
|
|
249
|
+
shell: bash
|
|
250
|
+
run: |
|
|
251
|
+
wheel="$(find dist -maxdepth 1 -name '*manylinux*_aarch64.whl' -print -quit)"
|
|
252
|
+
test -n "$wheel"
|
|
253
|
+
python -m pip install --force-reinstall "$wheel"
|
|
254
|
+
python -c "import platform, playwright_rust; from playwright_rust import VisualBox, VisualChange, VisualComparison, VisualElement, VisualElementStale, VisualNotFound; from playwright_rust._native import match_template_rgb; result = match_template_rgb(bytes((255, 0, 0)), 1, 1, bytes((255, 0, 0, 255)), 1, 1); assert result['best']['confidencePercent'] == 100.0; assert platform.machine().lower() in ('arm64', 'aarch64'); assert playwright_rust.__version__ == '0.50.0a3'; print('LINUX_ARM64_WHEEL=PASS', platform.machine(), playwright_rust.__version__)"
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/target/
|
|
2
|
+
/**/__pycache__/
|
|
3
|
+
/*.json
|
|
4
|
+
/*.log
|
|
5
|
+
/*.png
|
|
6
|
+
/*.diff
|
|
7
|
+
/*.txt
|
|
8
|
+
/*.sh
|
|
9
|
+
/fingerprint-site-audit/
|
|
10
|
+
/BASELINE-main.rs
|
|
11
|
+
/tests/*
|
|
12
|
+
!/tests/audit_*.py
|
|
13
|
+
!/tests/run_audit_*.py
|
|
14
|
+
!/tests/run_cross_os_chaos.py
|
|
15
|
+
!/tests/cross_os_contract.py
|
|
16
|
+
!/tests/run_rust_playwright_core.py
|
|
17
|
+
!/tests/run_rust_playwright_concurrency.py
|
|
18
|
+
!/tests/run_fingerprint_sites.py
|
|
19
|
+
!/tests/run_edge_async_all_apis.py
|
|
20
|
+
!/tests/run_proxy_hot_switch.py
|
|
21
|
+
!/tests/run_storage_state_full.py
|
|
22
|
+
!/tests/run_v046_fingerprint_modes.py
|
|
23
|
+
!/tests/run_v047_embedded_modes.py
|
|
24
|
+
!/tests/run_v047_embedded_deep.py
|
|
25
|
+
!/tests/run_v049_rust_cpu_benchmark.py
|
|
26
|
+
!/tests/run_linux_v050_resources.py
|
|
27
|
+
!/tests/run_linux_rust_firefox_pipe.py
|
|
28
|
+
!/tests/run_linux_official_firefox.py
|
|
29
|
+
!/tests/run_human_default_modes.py
|
|
30
|
+
!/tests/run_human_motion_contract.py
|
|
31
|
+
!/tests/run_human_click_ruyipage_style.py
|
|
32
|
+
!/tests/run_human_click_async_safety.py
|
|
33
|
+
!/tests/run_human_click_oopif_safety.py
|
|
34
|
+
!/tests/run_human_click_firefox_matrix.py
|
|
35
|
+
!/tests/run_api_reference_contract.py
|
|
36
|
+
!/tests/run_js_correctness_oracle.py
|
|
37
|
+
!/tests/run_visual_element_contract.py
|
|
38
|
+
!/tests/run_websocket_route.py
|
|
39
|
+
!/tests/run_visual_element.py
|
|
40
|
+
!/tests/fixtures/
|
|
41
|
+
!/tests/fixtures/webview2_host/
|
|
42
|
+
!/tests/fixtures/webview2_host/Program.cs
|
|
43
|
+
.idea/
|
|
44
|
+
.vscode/
|
|
45
|
+
*.pyc
|
|
46
|
+
*.pyo
|
|
47
|
+
*.pyd
|
|
48
|
+
*.egg-info/
|
|
49
|
+
*.so
|
|
50
|
+
*.dll
|
|
51
|
+
*.pdb
|
|
52
|
+
*.exe
|
|
53
|
+
!patches/*.patch
|
|
54
|
+
!/tests/run_element_recording_contract.py
|
|
55
|
+
!/tests/run_element_recording_live.py
|
|
56
|
+
!/tests/test_gst_recording.py
|
|
57
|
+
|
|
58
|
+
!tests/run_recording_resolution_live.py
|
|
59
|
+
|
|
60
|
+
!/tests/run_screenshot_focus_live.py
|
|
61
|
+
!/tests/run_api_concurrency_contract.py
|
|
62
|
+
!/API_CONCURRENCY_COVERAGE.json
|
|
63
|
+
!/tests/run_input_focus_live.py
|
|
64
|
+
|
|
65
|
+
!/tests/run_input_outcome_live.py
|
|
66
|
+
|
|
67
|
+
!tests/run_input_overlay_isolation_live.py
|
|
68
|
+
!tests/run_recording_input_mixed_live.py
|
|
69
|
+
|
|
70
|
+
!tests/run_input_staircase_live.py
|
|
71
|
+
|
|
72
|
+
!tests/run_request_notification_live.py
|
|
73
|
+
|
|
74
|
+
!tests/run_focus_observability_live.py
|
|
75
|
+
|
|
76
|
+
!tests/run_event_subscription_live.py
|
|
77
|
+
|
|
78
|
+
!tests/run_network_close_live.py
|
|
79
|
+
|
|
80
|
+
!tests/run_network_lifecycle_live.py
|
|
81
|
+
|
|
82
|
+
!python/playwright_rust/_media_runtime.py
|
|
83
|
+
!tools/
|
|
84
|
+
!tools/build_linux_media_wheel.py
|
|
85
|
+
!tools/prepare_linux_media_runtime.py
|
|
86
|
+
|
|
87
|
+
!tests/test_chrome_profile.py
|
|
88
|
+
!tests/run_chrome_profile_live.py
|
|
89
|
+
!tests/test_chrome_extension.mjs
|
|
90
|
+
|
|
91
|
+
!tests/test_chrome_export_popup.mjs
|
|
92
|
+
|
|
93
|
+
!tests/run_partition_cookie_live.py
|
|
94
|
+
|
|
95
|
+
!tests/run_chrome_cdp_export_live.py
|
|
96
|
+
!tests/run_chrome_profile_launch_live.py
|
|
97
|
+
|
|
98
|
+
!tests/run_cookie_json_transfer_live.py
|
|
99
|
+
!tests/run_cookie_baseline_compat_live.py
|
|
100
|
+
|
|
101
|
+
!tests/test_dispatch_bounds.py
|
|
102
|
+
|
|
103
|
+
!tests/run_dispatch_saturation_live.py
|
|
104
|
+
|
|
105
|
+
!tests/run_dispatch_async_live.py
|
|
106
|
+
|
|
107
|
+
!tests/run_dispatch_overflow_live.py
|
|
108
|
+
|
|
109
|
+
!tests/run_startup_failure_live.py
|
|
110
|
+
|
|
111
|
+
!tests/run_startup_success_live.py
|
|
112
|
+
|
|
113
|
+
!tests/run_dispatch_churn_live.py
|
|
114
|
+
!tests/run_native_cleanup_live.py
|
|
115
|
+
!tests/run_hidden_keepalive_probe.py
|
|
116
|
+
!tests/run_hidden_action_scope_live.py
|
|
117
|
+
|
|
118
|
+
!tests/run_minimal_recording_probe.py
|
|
119
|
+
|
|
120
|
+
!tests/run_roi_capture_scope_live.py
|
|
121
|
+
|
|
122
|
+
!tests/run_scaled_viewport_capture_live.py
|
|
123
|
+
|
|
124
|
+
!tests/run_ultra_low_recording_live.py
|
|
125
|
+
|
|
126
|
+
# U170 explicit recording and Worker lifecycle regression tests
|
|
127
|
+
!tests/test_recording_shared.py
|
|
128
|
+
!tests/run_recording_shared_live.py
|
|
129
|
+
!tests/run_recording_shared_lifecycle_live.py
|
|
130
|
+
!tests/run_input_no_capture_live.py
|
|
131
|
+
!tests/run_worker_lifecycle_live.py
|
|
132
|
+
!tests/run_worker_evaluate_isolation_live.py
|
|
133
|
+
!tests/run_worker_oopif_live.py
|
|
134
|
+
!tests/test_worker_lifecycle.py
|
|
135
|
+
|
|
136
|
+
!tests/test_gst_initialization.py
|
|
137
|
+
|
|
138
|
+
# U173 precise session lifecycle regression
|
|
139
|
+
!tests/run_session_lifecycle_live.py
|
|
140
|
+
!tests/test_session_lifecycle.py
|
|
141
|
+
|
|
142
|
+
!tests/run_page_crash_native_live.py
|
|
143
|
+
|
|
144
|
+
!tests/run_page_crash_input_native_live.py
|
|
145
|
+
|
|
146
|
+
!tests/run_page_crash_route_native_live.py
|
|
147
|
+
|
|
148
|
+
!tests/test_page_crash.py
|
|
149
|
+
|
|
150
|
+
!tests/run_page_crash_live.py
|
|
151
|
+
|
|
152
|
+
!tests/run_page_crash_recording_live.py
|
|
153
|
+
|
|
154
|
+
!tests/run_recording_primary_live.py
|
|
155
|
+
!tests/test_remote_cdp_contexts.py
|
|
156
|
+
!tests/test_mobile.py
|
|
157
|
+
!tests/run_mobile_live.py
|
|
158
|
+
!tests/run_mobile_focused.py
|
|
159
|
+
!tests/run_mobile_final.py
|
|
160
|
+
!tests/run_mobile_cdp_diagnostic.py
|
|
161
|
+
!tests/run_mobile_target_diagnostic.py
|
|
162
|
+
!tests/run_mobile_background_diagnostic.py
|
|
163
|
+
!tests/run_mobile_render_comparison.py
|
|
164
|
+
!tests/run_mobile_input_capture.py
|
|
165
|
+
!/tests/test_audit_fixes.py
|