Switch to hardware tab and open Add Printer dialog if "Print Button" missing

This commit is contained in:
John Lewin 2018-10-18 14:44:58 -07:00
parent caa0565e78
commit ec2098b721
2 changed files with 11 additions and 2 deletions

View file

@ -310,7 +310,16 @@ namespace MatterHackers.MatterControl.Tests.Automation
// Click 'Add Printer' if not on screen
if (!testRunner.NameExists("Select Make", 0.2))
{
testRunner.ClickByName("Print Button");
if (!testRunner.NameExists("Create Printer", 0.1))
{
// go to the start page
testRunner.ClickByName("Hardware Tab");
testRunner.ClickByName("Create Printer");
}
else
{
testRunner.ClickByName("Print Button");
}
}
testRunner.ClickByName("Select Make");