diff --git a/src/FlaUI.WebDriver.UITests/ExecuteTests.cs b/src/FlaUI.WebDriver.UITests/ExecuteTests.cs index 36360d2..8ddedc6 100644 --- a/src/FlaUI.WebDriver.UITests/ExecuteTests.cs +++ b/src/FlaUI.WebDriver.UITests/ExecuteTests.cs @@ -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 { + driver.ExecuteScript("windows: setClipboard", new Dictionary { ["b64Content"] = "Pasted!"}); - result = driver.ExecuteScript("windows: clearClipboard"); - result = driver.ExecuteScript("windows: getClipboard", new Dictionary {}); + driver.ExecuteScript("windows: clearClipboard"); + var result = driver.ExecuteScript("windows: getClipboard", new Dictionary {}); Assert.That(result, Is.EqualTo("")); }