File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change 4
4
*
5
5
* npx create-browser-app@latest my-browser-app
6
6
*/
7
-
8
7
import { Stagehand } from "@browserbasehq/stagehand" ;
8
+ import StagehandConfig from "../stagehand.config" ;
9
9
10
10
async function example ( stagehand : Stagehand ) {
11
11
/**
12
12
* Add your code here!
13
13
*/
14
14
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" ) ;
23
17
}
24
18
25
19
( async ( ) => {
26
20
const stagehand = new Stagehand ( {
27
- env : "LOCAL" ,
28
- useAPI : false ,
29
- logInferenceToFile : true ,
30
- verbose : 2 ,
21
+ ...StagehandConfig ,
31
22
} ) ;
32
23
await stagehand . init ( ) ;
33
24
await example ( stagehand ) ;
34
- } ) ( ) ;
25
+ await stagehand . close ( ) ;
26
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments