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

Added actions are not getting read #26

Open
mahmoudsameer1 opened this issue Mar 19, 2024 · 0 comments
Open

Added actions are not getting read #26

mahmoudsameer1 opened this issue Mar 19, 2024 · 0 comments

Comments

@mahmoudsameer1
Copy link

I have added new action to the create action file but when I execute the code its not being read, and it shows the action is not defined
selectOption: {
function: async (args: { value: string; elementId: string }) => {
await getLocator(args.elementId).selectOption(args.value);

    return {
      success: true,
    };
  },
  name: "selectOption",
  description: "Selectoption value from a dropdown list",
  parse: (args: string) => {
    return z
      .object({
        elementId: z.string(),
        value: z.string(),
      })
      .parse(JSON.parse(args));
  },
  parameters: {
    type: "object",
    properties: {
      value: {
        type: "string",
      },
      elementId: {
        type: "string",
      },
    },
  },
},  
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

1 participant