Beispiel #1
0
 public Eyes(EyesRunner runner)
 {
     if (runner == null)
     {
         runner = new ClassicRunner();
     }
     runner_ = runner;
     if (runner is VisualGridRunner visualGridRunner)
     {
         visualGridEyes_   = new VisualGridEyes(this, visualGridRunner);
         isVisualGridEyes_ = true;
         activeEyes_       = visualGridEyes_;
     }
     else
     {
         seleniumEyes_ = new SeleniumEyes(this, (ClassicRunner)runner);
         activeEyes_   = seleniumEyes_;
     }
     configuration_.SetForceFullPageScreenshot(isVisualGridEyes_);
 }
Beispiel #2
0
 public Eyes(EyesRunner runner)
 {
     if (runner == null)
     {
         runner = new ClassicRunner();
     }
     runner_ = runner;
     if (runner is VisualGridRunner visualGridRunner)
     {
         visualGridEyes_   = new VisualGridEyes(this, visualGridRunner);
         isVisualGridEyes_ = true;
         activeEyes_       = visualGridEyes_;
     }
     else
     {
         seleniumEyes_ = new SeleniumEyes(this, (ClassicRunner)runner);
         activeEyes_   = seleniumEyes_;
     }
     ServerConnector = runner.ServerConnector;
 }