Skip to content

Commit bcb8887

Browse files
revert example (#892)
# why - accidentally pushed a scratchpad example # what changed - revert example to original
1 parent d584fc1 commit bcb8887

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

examples/example.ts

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,23 @@
44
*
55
* npx create-browser-app@latest my-browser-app
66
*/
7-
87
import { Stagehand } from "@browserbasehq/stagehand";
8+
import StagehandConfig from "../stagehand.config";
99

1010
async function example(stagehand: Stagehand) {
1111
/**
1212
* Add your code here!
1313
*/
1414
const page = stagehand.page;
15-
16-
await page.goto(
17-
"https://browserbase.github.io/stagehand-eval-sites/sites/nested-dropdown/",
18-
);
19-
20-
await page.act(
21-
"choose 'Smog Check Technician' from the 'License Type' dropdown",
22-
);
15+
await page.goto("https://docs.stagehand.dev");
16+
await page.act("click the quickstart button");
2317
}
2418

2519
(async () => {
2620
const stagehand = new Stagehand({
27-
env: "LOCAL",
28-
useAPI: false,
29-
logInferenceToFile: true,
30-
verbose: 2,
21+
...StagehandConfig,
3122
});
3223
await stagehand.init();
3324
await example(stagehand);
34-
})();
25+
await stagehand.close();
26+
})();

0 commit comments

Comments
 (0)