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.6.0.tar.gz (5.1 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.6.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cua_bench_ui-0.6.0.tar.gz
Algorithm Hash digest
SHA256 9959d60d66cc13704101ddcecd674ab3e039fa5a9025ea46c26f0a2937d698f9
MD5 73f6fb31c323eed4eb6286a9b95146c8
BLAKE2b-256 6bdb3825fd39865ba9d0bdd901ac8c23da0d8502411db14d288b361fd27421be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cua_bench_ui-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 260cb96923721490505db46bc7bf3e23f7d7cb1a14d6db4bf2ab657fd473fe0e
MD5 3d513fccec64e1d4378f2e3839312d9d
BLAKE2b-256 5f3d279edb5717ac61164663661483a9ed419b160d002dfc8e9438ab4431bb1a

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