public componentsRM(IWebDriver driver) { this.driver = driver; obj = new objRepo(driver); act = new Actions(driver); waitDriver = new WebDriverWait(this.driver, System.TimeSpan.FromSeconds(50)); }
public void Setup() { // Run testScripts in Firefox browser driver = new FirefoxDriver(); // Initlizating the webelements to the driver by invoking the constructor act = new Actions(driver); obj = new objRepo(driver); RM = new componentsRM(driver); driver.Manage().Window.Maximize(); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(50); driver.Navigate().GoToUrl(baseUrl); RM.loginTranscriber(username, password); }