Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Expected to have result #43

Open
ruqzhang opened this issue Aug 6, 2024 · 1 comment
Open

Error: Expected to have result #43

ruqzhang opened this issue Aug 6, 2024 · 1 comment

Comments

@ruqzhang
Copy link

ruqzhang commented Aug 6, 2024

Every time I run the tests, an error “ Expected to have result” occurs; and the official provided test also fails.
image

message.tool_calls[0].function.name.startsWith("result")
it seems like this condition is never satisfied

@seyacat
Copy link

seyacat commented Dec 2, 2024

I add a new line to prompt to avoid that.

`* When creating CSS selectors, ensure they are unique and specific enough to select only one element, even if there are multiple elements of the same type (like multiple h1 elements).

  • Avoid using generic tags like 'h1' alone. Instead, combine them with other attributes or structural relationships to form a unique selector.
  • You must not derive data from the page if you are able to do so by using one of the provided functions, e.g. locator_evaluate.
  • Always execute result* function at last.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants