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 <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2019-01-04 17:31:48 +00:00
parent e32e67cd02
commit 46faf191c5

View File

@ -62,7 +62,12 @@ namespace XenAdminTests.WizardTests.state1_xml
{ {
if (pageName == "Installation Media") 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") if (pageName == "Storage")