diff options
author | Kyle White <kyle.white@xamarin.com> | 2015-09-25 22:50:55 +0300 |
---|---|---|
committer | Kyle White <kyle.white@xamarin.com> | 2015-09-25 22:50:55 +0300 |
commit | 3b5cfce8afc87b408a0eadfc676d0ead905c0ab9 (patch) | |
tree | 40cff26aafbad05fef9b71354a12b275beb02c7f /main/tests | |
parent | 687d4a2ee79e4cf2dc76cacc3502a99231081268 (diff) |
[UITest] Implement ClickButtonAlertDialog on Win
Diffstat (limited to 'main/tests')
-rw-r--r-- | main/tests/UserInterfaceTests/Ide.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/tests/UserInterfaceTests/Ide.cs b/main/tests/UserInterfaceTests/Ide.cs index b4e6e3837a..12620ec47b 100644 --- a/main/tests/UserInterfaceTests/Ide.cs +++ b/main/tests/UserInterfaceTests/Ide.cs @@ -84,9 +84,10 @@ namespace UserInterfaceTests if (Platform.IsMac) { Ide.WaitUntil (() => Session.Query (c => c.Marked ("Xamarin Studio").Marked ("AppKit.NSPanel")).Any ()); return Session.ClickElement (c => c.Marked ("AppKit.NSButton").Text (buttonText)); + } else { + Ide.WaitUntil (() => Session.Query (c => c.Window ().Marked ("MonoDevelop.Ide.Gui.Dialogs.GtkAlertDialog")).Any ()); + return Session.ClickElement (c => c.Window ().Marked ("MonoDevelop.Ide.Gui.Dialogs.GtkAlertDialog").Children ().Button ().Text (buttonText)); } - - throw new PlatformNotSupportedException ("ClickButtonAlertDialog is only supported on Mac"); } public static void RunAndWaitForTimer (Action action, string counter, int timeout = 20000) |