Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

update nextra docs

Louis Beaumontbd2b6c0a6ae8
diff --git a/content/docs/pages/docs/operator-api.mdx b/content/docs/pages/docs/operator-api.mdx
index 9ef55f0ee..77304d4c8 100644
--- a/content/docs/pages/docs/operator-api.mdx
+++ b/content/docs/pages/docs/operator-api.mdx
@@ -126,34 +126,13 @@ async function fillContactForm() {
// wait for page to load (simple delay)
await new Promise(resolve => setTimeout(resolve, 2000))
- // find form fields
- const nameField = await pipe.operator
- .getByRole("textfield", {
- app: "Chrome",
- activateApp: true,
- nameContains: "name"
- })
- .first()
-
const emailField = await pipe.operator
.getByRole("textfield", {
app: "Chrome",
- nameContains: "email"
- })
- .first()
-
- const messageField = await pipe.operator
- .getByRole("textfield", {
- app: "Chrome",
- nameContains: "message"
+ activateApp: true,
})
.first()
-
- // fill the form
- await pipe.operator
- .getById(nameField.id, { app: "Chrome" })
- .fill("john doe")
-
+
await pipe.operator
.getById(emailField.id, { app: "Chrome" })
@@ -166,7 +145,6 @@ async function fillContactForm() {
const submitButton = await pipe.operator
.getByRole("button", {
app: "Chrome",
- nameContains: "submit"
})
.first()
@@ -188,7 +166,6 @@ async function processImages() {
await pipe.operator
.getByRole("menuitem", {
app: "Adobe Photoshop",
- nameContains: "file"
})
.first()
.then(menu => pipe.operator.getById(menu.id, { app: "Adobe Photoshop" }).click())
@@ -196,7 +173,6 @@ async function processImages() {
await pipe.operator
.getByRole("menuitem", {
app: "Adobe Photoshop",
- nameContains: "open"
})
.first()
.then(menu => pipe.operator.getById(menu.id, { app: "Adobe Photoshop" }).click())
@@ -208,7 +184,6 @@ async function processImages() {
await pipe.operator
.getByRole("menuitem", {
app: "Adobe Photoshop",
- nameContains: "filter"
})
.first()
.then(menu => pipe.operator.getById(menu.id, { app: "Adobe Photoshop" }).click())