Wait up to 1 second for SettingsAndControls to appear

This commit is contained in:
John Lewin 2017-03-09 14:25:20 -08:00
parent ef10258ae4
commit 458f0649e6

View file

@ -465,7 +465,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void SwitchToSettingsAndControls(this AutomationRunner testRunner)
{
if (testRunner.WaitForName("SettingsAndControls", .2))
if (testRunner.WaitForName("SettingsAndControls"))
{
testRunner.ClickByName("SettingsAndControls");
testRunner.Delay(.5);
@ -474,7 +474,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void SwitchToAdvancedSettings(AutomationRunner testRunner)
{
if (testRunner.WaitForName("SettingsAndControls", .2))
if (testRunner.WaitForName("SettingsAndControls"))
{
testRunner.ClickByName("SettingsAndControls");
testRunner.Delay(.5);