Skip to main content

Lightweight webUI window controller for CUA bench using pywebview

Project description

CUA Bench UI

Lightweight webUI window controller for CUA bench environments using pywebview

Usage

from bench_ui import launch_window, get_element_rect, execute_javascript

# Launch a window with inline HTML content
pid = launch_window(html="<html><body><h1>Hello</h1></body></html>")

# Get element rect in screen space
rect = get_element_rect(pid, "h1", space="screen")
print(rect)

# Execute arbitrary JavaScript
text = execute_javascript(pid, "document.querySelector('h1')?.textContent")
print(text)

Installation

pip install cua-bench-ui

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cua_bench_ui-0.7.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cua_bench_ui-0.7.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file cua_bench_ui-0.7.0.tar.gz.

File metadata

  • Download URL: cua_bench_ui-0.7.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for cua_bench_ui-0.7.0.tar.gz
Algorithm Hash digest
SHA256 7800494ebce80cd8d22831fb7919c61636e411682be0645e5aedfd4a8b2d1b6f
MD5 50d2cf6ea31ec0b83ce2407a2b16f549
BLAKE2b-256 96788010422f714ff0e4e3380f63cca3346e46947d8251e8c4dcad06c334dac3

See more details on using hashes here.

File details

Details for the file cua_bench_ui-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cua_bench_ui-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 819d3ece31661b6e07989c3c274a83fa741e8c0be830446db994661ea6b034a9
MD5 246c2c17917f2982ae5ab9b70692b435
BLAKE2b-256 b3517ec982b411134c4d5e523ae565518dbaa244fa313f1bd0ef17ca35bf6ab2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page