From d0eb61827fc757c123d7940c4e5c9582b63b8749 Mon Sep 17 00:00:00 2001 From: jensakejohansson Date: Wed, 15 Jan 2025 14:30:35 +0100 Subject: [PATCH] Added method for clearing the clipboard. --- src/FlaUI.WebDriver.UITests/ExecuteTests.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/FlaUI.WebDriver.UITests/ExecuteTests.cs b/src/FlaUI.WebDriver.UITests/ExecuteTests.cs index 8ddedc6..8fdeb02 100644 --- a/src/FlaUI.WebDriver.UITests/ExecuteTests.cs +++ b/src/FlaUI.WebDriver.UITests/ExecuteTests.cs @@ -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 { ["b64Content"] = "Pasted!"}); - driver.ExecuteScript("windows: clearClipboard"); var result = driver.ExecuteScript("windows: getClipboard", new Dictionary {}); Assert.That(result, Is.EqualTo(""));