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
First of all - I'm new to stagehand, and I don't have a subscription to either OpenAI or Anthropic, so my only testing has been a local LLM with Ollama (w/ llama3.2).
I've been having a lot of success with reading information from a webpage using extract(), but I have not been able to do anything with act(). It seems like if I'm including some data (such as text) that I'm asking it to work with, like in this example:
await stagehand.page.goto("https://google.com/");
await page.act({ action: "type the text 'test' in the search field" });
I get an error like this:
Cannot assign to read only property '0' of string '["search field"]'
TypeError: Cannot assign to read only property '0' of string '["search field"]'
at {my working path}\node_modules\@browserbasehq\stagehand\dist\index.js:3269:29
at Array.forEach (<anonymous>)
at StagehandActHandler.<anonymous> ({my working path}\node_modules\@browserbasehq\stagehand\dist\index.js:3267:26)
at Generator.next (<anonymous>)
at fulfilled ({my working path}\node_modules\@browserbasehq\stagehand\dist\index.js:63:24)
If it's a simple action with no data to handle, like this example:
args is not iterable
TypeError: args is not iterable
at StagehandActHandler.<anonymous> (F:\Gannon Workspace\Tools\stagehand\ollama-test-from-template\node_modules\@browserbasehq\stagehand\dist\index.js:3265:36)
at Generator.next (<anonymous>)
at fulfilled (F:\Gannon Workspace\Tools\stagehand\ollama-test-from-template\node_modules\@browserbasehq\stagehand\dist\index.js:63:24)
I followed the quickstart guide and my code is basically just the custom-client-ollama example that I'm using to experiment with act(). I greatly appreciate any help, really hoping to get this working as stagehand seems like a very cool project!
The text was updated successfully, but these errors were encountered:
First of all - I'm new to stagehand, and I don't have a subscription to either OpenAI or Anthropic, so my only testing has been a local LLM with Ollama (w/ llama3.2).
I've been having a lot of success with reading information from a webpage using
extract()
, but I have not been able to do anything withact()
. It seems like if I'm including some data (such as text) that I'm asking it to work with, like in this example:I get an error like this:
If it's a simple action with no data to handle, like this example:
I get this instead:
I followed the quickstart guide and my code is basically just the custom-client-ollama example that I'm using to experiment with act(). I greatly appreciate any help, really hoping to get this working as stagehand seems like a very cool project!
The text was updated successfully, but these errors were encountered: