Skip to content

Commit

Permalink
feat: expand instructions to ensure unique selectors are used
Browse files Browse the repository at this point in the history
  • Loading branch information
lucgagan committed Nov 14, 2023
1 parent c8e6205 commit 75cc7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { TaskMessage } from "./types";
export const prompt = (message: TaskMessage) => {
return `This is your task: ${message.task}
* Must always use locateElement function to find the element and reference it by elementId.
* 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.
Webpage snapshot:
Expand Down

0 comments on commit 75cc7c2

Please sign in to comment.