You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -137,7 +137,7 @@ This constructor is used to create an instance of Stagehand.
137
137
-`1`: SDK-level logging
138
138
-`2`: LLM-client level logging (most granular)
139
139
-`debugDom`: a `boolean` that draws bounding boxes around elements presented to the LLM during automation.
140
-
-`domSettleTimeoutMs`: an `integer` that specifies the timeout in milliseconds for waiting for the DOM to settle. Defaults to 30000 (30 seconds).
140
+
-`domSettleTimeoutMs`: an `integer` that specifies the timeout in milliseconds for waiting for the DOM to settle. It can be overriden in individual function calls if needed. Defaults to 30000 (30 seconds).
141
141
-`enableCaching`: a `boolean` that enables caching of LLM responses. When set to `true`, the LLM requests will be cached on disk and reused for identical requests. Defaults to `false`.
142
142
143
143
-**Returns:**
@@ -179,6 +179,7 @@ This constructor is used to create an instance of Stagehand.
179
179
-`action`: a `string` describing the action to perform, e.g., `"search for 'x'"`.
180
180
-`modelName`: (optional) an `AvailableModel` string to specify the model to use.
181
181
-`useVision`: (optional) a `boolean` or `"fallback"` to determine if vision-based processing should be used. Defaults to `"fallback"`.
182
+
-`domSettleTimeoutMs`: (optional) an `integer` that specifies the timeout in milliseconds for waiting for the DOM to settle. If not set, defaults to the timeout value specified during initialization.
182
183
183
184
-**Returns:**
184
185
@@ -201,6 +202,7 @@ This constructor is used to create an instance of Stagehand.
201
202
-`instruction`: a `string` providing instructions for extraction.
202
203
-`schema`: a `z.AnyZodObject` defining the structure of the data to extract.
203
204
-`modelName`: (optional) an `AvailableModel` string to specify the model to use.
205
+
-`domSettleTimeoutMs`: (optional) an `integer` that specifies the timeout in milliseconds for waiting for the DOM to settle. If not set, defaults to the timeout value specified during initialization.
204
206
205
207
-**Returns:**
206
208
@@ -229,6 +231,7 @@ If you are looking for a specific element, you can also pass in an instruction t
229
231
230
232
-`instruction`: a `string` providing instructions for the observation.
231
233
-`useVision`: (optional) a `boolean` or `"fallback"` to determine if vision-based processing should be used. Defaults to `"fallback"`.
234
+
-`domSettleTimeoutMs`: (optional) an `integer` that specifies the timeout in milliseconds for waiting for the DOM to settle. If not set, defaults to the timeout value specified during initialization.
instruction=`Find elements that can be used for any future actions in the page. These may be navigation links, related pages, section/subsection links, buttons, or other interactive elements. Be comprehensive: if there are multiple elements that may be relevant for future actions, return all of them.`;
0 commit comments