Skip to main content

Lightweight webUI window launcher 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.2.0.tar.gz (5.0 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.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cua_bench_ui-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8734b870981f09d2b0184a008541fbb1dee56b7b6b24f205ac85f24fc6583a34
MD5 b8ed625d4f04d44fb10baf41cbdc5c92
BLAKE2b-256 bc204efed924e56beffc3a7b6b3364517f734fa9d6d07cde9b73d120c0acd951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cua_bench_ui-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb95f514a02d7b1b0b2890501e27e2320a0c51e7e33ab8bac52b0a917e17adbb
MD5 d8a1cb16d0f6f90065460905b7db952c
BLAKE2b-256 b8a9f47c98581836d9b2c31f6b9a95b1e4d3c428808de255b4ef5b850beaa1c5

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