fixed WindowsDriver to work in linux unit tests

This commit is contained in:
Tigger Kindel
2023-08-11 13:13:21 -06:00
committed by Tig
parent 9c0bfd1478
commit 71d51756f9

View File

@@ -798,8 +798,10 @@ internal class WindowsDriver : ConsoleDriver {
if (Environment.OSVersion.Platform == PlatformID.Win32NT) {
WinConsole = new WindowsConsole ();
// otherwise we're probably running in unite tests
Clipboard = new WindowsClipboard ();
} else {
Clipboard = new FakeDriver.FakeClipboard ();
}
Clipboard = new WindowsClipboard ();
_isWindowsTerminal = Environment.GetEnvironmentVariable ("WT_SESSION") != null;