public void OpenBrowser(string driver) { switch (driver) { case "Chrome": WebDriver = browserUtility.SetupChromeDriver(driverPath); break; case "Firefox": WebDriver = browserUtility.SetupFirefoxDriver(driverPath); break; case "InternetExplorer": WebDriver = browserUtility.SetupInternetExplorerDriver(driverPath); break; } basePage = new BasePage(WebDriver); loginUserPage = new LoginUserPage(WebDriver); boutiquePage = new BoutiquePage(WebDriver); productPage = new ProductPage(WebDriver); }