Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix: correct computer typing helper in docs

Adame98f71dc57f8
diff --git a/README.md b/README.md
index 270f85e07c..199e5a3a69 100644
--- a/README.md
+++ b/README.md
@@ -305,7 +305,7 @@ try:
# Click and type
await computer.interface.left_click(100, 100)
- await computer.interface.type("Hello!")
+ await computer.interface.type_text("Hello!")
finally:
await computer.close()
```
diff --git a/blog/training-computer-use-models-trajectories-1.md b/blog/training-computer-use-models-trajectories-1.md
index 1fa83a8e72..dcfdbb12d3 100644
--- a/blog/training-computer-use-models-trajectories-1.md
+++ b/blog/training-computer-use-models-trajectories-1.md
@@ -247,7 +247,7 @@ try:
await computer.interface.right_click(300, 300)
await computer.interface.double_click(400, 400)
- await computer.interface.type("Hello, World!")
+ await computer.interface.type_text("Hello, World!")
await computer.interface.press_key("enter")
await computer.interface.set_clipboard("Test clipboard")
diff --git a/docs/content/docs/get-started/quickstart.mdx b/docs/content/docs/get-started/quickstart.mdx
index e1762459cb..e0b09980ff 100644
--- a/docs/content/docs/get-started/quickstart.mdx
+++ b/docs/content/docs/get-started/quickstart.mdx
@@ -185,7 +185,7 @@ Connect to your Cua computer and perform basic interactions, such as taking scre
# Simulate a left-click at coordinates (100, 100)
await computer.interface.left_click(100, 100)
# Type "Hello!" into the active application
- await computer.interface.type("Hello!")
+ await computer.interface.type_text("Hello!")
finally:
await computer.close()
```
diff --git a/libs/python/computer/README.md b/libs/python/computer/README.md
index 2cead0cc07..d1179b634b 100644
--- a/libs/python/computer/README.md
+++ b/libs/python/computer/README.md
@@ -40,7 +40,7 @@ try:
await computer.interface.right_click(300, 300)
await computer.interface.double_click(400, 400)
- await computer.interface.type("Hello, World!")
+ await computer.interface.type_text("Hello, World!")
await computer.interface.press_key("enter")
await computer.interface.set_clipboard("Test clipboard")