Skip to content

Commit

Permalink
New message for the combined commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jensakejohansson committed Jan 16, 2025
1 parent 87ea306 commit 85cfcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FlaUI.WebDriver/Controllers/ExecuteController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private async Task<ActionResult> ExecuteWindowsGetClipboardScript(Session sessio

private async Task<ActionResult> ExecuteWindowsClearClipboardScript(Session session, ExecuteScriptRequest executeScriptRequest)
{
if (executeScriptRequest.Args.Count > 1)
if (executeScriptRequest.Args.Count != 0)
{
throw WebDriverResponseException.InvalidArgument($"No arguments expected for the windows: getClipboard script, but got {executeScriptRequest.Args.Count} arguments");
}
Expand Down

0 comments on commit 85cfcfd

Please sign in to comment.