public void Setup() { #if DEBUG driver = new SeleniumDriver(browser: "Chrome", timeOut: 5); #else driver = new SeleniumDriver(browser: "remoteChrome", remoteHost: "http://localhost:4444/wd/hub"); #endif driver.NavigateToURL("http://the-internet.herokuapp.com/"); }
/// <summary> /// Builds a new test automation driver. /// </summary> /// <returns>A New Testing Driver with the given parameters.</returns> public ITestingDriver Build() { SeleniumDriver driver = new SeleniumDriver(); ITestingDriver automationDriver = ReflectiveGetter.GetImplementationOfType <ITestingDriver>(this.Args) .Find(x => x.Name.Equals(this.DriverType)); if (automationDriver == null) { Logger.Error($"Sorry we do not currently support the testing application: {this.DriverType.ToString()}"); } return(automationDriver); }