Skip to content

Commit

Permalink
Add the "wait_selector_for_algorithm" option
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed Sep 7, 2024
1 parent 00cbe51 commit 8c683fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "screenshotone-validations",
"homepage": "https://screenshotone.com",
"version": "1.0.45",
"version": "1.0.46",
"description": "Validation schemes for the ScreenshotOne API requests.",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ const commonOptionsScheme = Joi.object({
.default([]),

wait_for_selector: Joi.string().optional(),
wait_for_selector_algorithm: Joi.string().valid(
"race",
"all"
).default('race').optional(),
fail_if_content_contains: Joi.string().optional(),

async: Joi.boolean().default(false),
Expand Down

0 comments on commit 8c683fd

Please sign in to comment.