Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
fix: run formatters to fix lint workflow failure
[email protected]13ffe4ace25f
diff --git a/libs/python/bench-ui/examples/folder_example.py b/libs/python/bench-ui/examples/folder_example.pyindex 324c2cdb7a..c595384068 100644--- a/libs/python/bench-ui/examples/folder_example.py+++ b/libs/python/bench-ui/examples/folder_example.py@@ -1,15 +1,18 @@from __future__ import annotations++import osimport time-from bench_ui import launch_window, get_element_rect, execute_javascriptfrom pathlib import Path-import os++from bench_ui import execute_javascript, get_element_rect, launch_window+def main():os.environ["CUA_BENCH_UI_DEBUG"] = "1"# Get the path to the gui foldergui_folder = Path(__file__).parent / "gui"-+# Launch a window serving the static folderpid = launch_window(folder=str(gui_folder),@@ -30,7 +33,7 @@ def main():# Check if button has been clickedclicked = execute_javascript(pid, "document.getElementById('testButton').disabled")print("Button clicked:", clicked)-+# Get the page titletitle = execute_javascript(pid, "document.title")print("Page title:", title)