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 6d29bef commit d0eb618
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/FlaUI.WebDriver.UITests/ExecuteTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ public void ExecuteScript_WindowsClearClipboard_IsSupported()
{
var driverOptions = FlaUIDriverOptions.TestApp();
using var driver = new RemoteWebDriver(WebDriverFixture.WebDriverUrl, driverOptions);

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

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 d0eb618

Please sign in to comment.