Skip to content

Commit

Permalink
Added method for clearing the clipboard.
Browse files Browse the repository at this point in the history
  • Loading branch information
jensakejohansson committed Jan 15, 2025
1 parent 67a531d commit 6d29bef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FlaUI.WebDriver.UITests/ExecuteTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public void ExecuteScript_WindowsClearClipboard_IsSupported()
var driverOptions = FlaUIDriverOptions.TestApp();
using var driver = new RemoteWebDriver(WebDriverFixture.WebDriverUrl, driverOptions);

var result = driver.ExecuteScript("windows: setClipboard", new Dictionary<string, object> {
driver.ExecuteScript("windows: setClipboard", new Dictionary<string, object> {
["b64Content"] = "Pasted!"});

result = driver.ExecuteScript("windows: clearClipboard");
result = driver.ExecuteScript("windows: getClipboard", new Dictionary<string, object> {});
driver.ExecuteScript("windows: clearClipboard");
var result = driver.ExecuteScript("windows: getClipboard", new Dictionary<string, object> {});
Assert.That(result, Is.EqualTo(""));
}

Expand Down

0 comments on commit 6d29bef

Please sign in to comment.