Skip to content

Commit

Permalink
feat: rename cssLocator to cssSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
lucgagan committed Nov 14, 2023
1 parent cec143f commit c8e6205
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/completeTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export const completeTask = async (
{
function: async (args: {
attributeName: string;
cssLocator: string;
cssSelector: string;
}) => {
const locator = await page.locator(args.cssLocator);
const locator = await page.locator(args.cssSelector);

const elementId = randomUUID();

Expand All @@ -47,18 +47,18 @@ export const completeTask = async (
},
name: "locateElement",
description:
"Locates element and returns elementId. This element ID can be used with other functions to perform actions on the element.",
"Locates element using a CSS selector and returns elementId. This element ID can be used with other functions to perform actions on the element.",
parse: (args: string) => {
return z
.object({
cssLocator: z.string(),
cssSelector: z.string(),
})
.parse(JSON.parse(args));
},
parameters: {
type: "object",
properties: {
cssLocator: {
cssSelector: {
type: "string",
},
},
Expand Down

0 comments on commit c8e6205

Please sign in to comment.