Use Setup Wizard -> Create Printer window if open

This commit is contained in:
John Lewin 2017-09-16 13:47:19 -07:00
parent b77d9db15a
commit 5f99479b33

View file

@ -264,16 +264,13 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void AddAndSelectPrinter(this AutomationRunner testRunner, string make, string model)
{
// If SelectMake is not visible and the ConnectionWizard is, click Skip
if (!testRunner.NameExists("Select Make", .2)
&& testRunner.WaitForName("Connection Wizard Skip Sign In Button", 1))
if (!testRunner.NameExists("Select Make", 1.5))
{
testRunner.ClickByName("Connection Wizard Skip Sign In Button");
// Go to the new tab screen
testRunner.ClickByName("Create New");
testRunner.ClickByName("Create Printer");
}
// Go to the new tab screen
testRunner.ClickByName("Create New");
testRunner.ClickByName("Create Printer");
testRunner.ClickByName("Select Make");
testRunner.Type(make);
testRunner.Type("{Enter}");