Skip to content

Commit 6d29bef

Browse files
Added method for clearing the clipboard.
1 parent 67a531d commit 6d29bef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FlaUI.WebDriver.UITests/ExecuteTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ public void ExecuteScript_WindowsClearClipboard_IsSupported()
7070
var driverOptions = FlaUIDriverOptions.TestApp();
7171
using var driver = new RemoteWebDriver(WebDriverFixture.WebDriverUrl, driverOptions);
7272

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

76-
result = driver.ExecuteScript("windows: clearClipboard");
77-
result = driver.ExecuteScript("windows: getClipboard", new Dictionary<string, object> {});
76+
driver.ExecuteScript("windows: clearClipboard");
77+
var result = driver.ExecuteScript("windows: getClipboard", new Dictionary<string, object> {});
7878
Assert.That(result, Is.EqualTo(""));
7979
}
8080

0 commit comments

Comments
 (0)