Use Setup Wizard -> Create Printer window if open
This commit is contained in:
parent
b77d9db15a
commit
5f99479b33
1 changed files with 4 additions and 7 deletions
|
|
@ -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}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue