From 46faf191c5c8981c5a959197dd6dabc3f17a9375 Mon Sep 17 00:00:00 2001 From: Konstantina Chremmou Date: Fri, 4 Jan 2019 17:31:48 +0000 Subject: [PATCH] Enforce focus on the radio button so when Enter is hit the wizard proceeds. Otherwise, the focus may randomly go on the link opening the NewSR wizard; once the latter is open the test times out. Signed-off-by: Konstantina Chremmou --- XenAdminTests/WizardTests/NewVMWizardDisklessVMs.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/XenAdminTests/WizardTests/NewVMWizardDisklessVMs.cs b/XenAdminTests/WizardTests/NewVMWizardDisklessVMs.cs index c83021b20..9cf5182e3 100644 --- a/XenAdminTests/WizardTests/NewVMWizardDisklessVMs.cs +++ b/XenAdminTests/WizardTests/NewVMWizardDisklessVMs.cs @@ -62,7 +62,12 @@ namespace XenAdminTests.WizardTests.state1_xml { if (pageName == "Installation Media") { - MW(() => (TestUtils.GetRadioButton(wizard, "page_3_InstallationMedia.UrlRadioButton")).Checked = true); + MW(() => + { + var button = TestUtils.GetRadioButton(wizard, "page_3_InstallationMedia.UrlRadioButton"); + button.Checked = true; + button.Focus(); + }); } if (pageName == "Storage")