public void SetUp() { var binary = new FirefoxBinary(ConfigUtils.Read("FirefoxPath")); // string path = ReadFirefoxProfile(); FirefoxProfile ffprofile = new FirefoxProfile(); driver = new FirefoxDriver(binary, ffprofile); // driver = new InternetExplorerDriver(internetExplorerDriverServerDirectory: "\\srv10177\\TEMPSHTIW$\\Desktop\\SIT\\SITSmokeTests\\IEDriverServer.exe"); driver.Manage().Cookies.DeleteAllCookies(); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(15)); // Before each test wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60)); datafilePath = ConfigUtils.Read("TestDataPath"); sGMethods = new GeneralMethods(); intigrationmon = new MOnitorUI(driver); iccPortal = new ICCBAMPageObj(driver); }
public SIT_LibraryTest() { var binary = new FirefoxBinary(ConfigUtils.Read("FirefoxPath")); // string path = ReadFirefoxProfile(); FirefoxProfile ffprofile = new FirefoxProfile(); driver = new FirefoxDriver(binary, ffprofile); // driver.Manage().Cookies.DeleteAllCookies(); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(15)); Thread.Sleep(1000); driver.Manage().Window.Maximize(); Thread.Sleep(2000); // Before each test wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60)); datafilePath = System.Environment.GetEnvironmentVariable("ProjectWorkingDirectory") + ConfigUtils.Read("TestDataPath"); libraryUi = new SIT_Library_UI(driver); iccPortal = new ICCBAMPageObj(driver); }
public void SetUp() { //var binary = new FirefoxBinary(ConfigUtils.Read("FirefoxPath")); //// string path = ReadFirefoxProfile(); //FirefoxProfile ffprofile = new FirefoxProfile(); //driver = new FirefoxDriver(binary, ffprofile); //// driver.Manage().Cookies.DeleteAllCookies(); //driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(15)); //driver.Manage().Window.Maximize(); //Thread.Sleep(1000); // Before each test // options.BrowserExecutableLocation = ConfigUtils.Read("FirefoxPath"); // driver = new FirefoxDriver(options); Thread.Sleep(1000); var binary = new FirefoxBinary(ConfigUtils.Read("FirefoxPath")); // // string path = ReadFirefoxProfile(); FirefoxProfile ffprofile = new FirefoxProfile(ConfigUtils.Read("FirefoxPath")); ffprofile.SetPreference("binary", ConfigUtils.Read("FirefoxPath")); driver = new FirefoxDriver(binary, ffprofile); // FirefoxOptions sfopt = new FirefoxOptions(); //sfopt.Profile = ffprofile; // sfopt.AddAdditionalCapability("binary", binary); // sfopt.SetPreference("binary", ConfigUtils.Read("FirefoxPath")); // // sfopt.BrowserExecutableLocation = ConfigUtils.Read("FirefoxPath"); // // sfopt.ToCapabilities.binary=ConfigUtils.Read("FirefoxPath"); // driver = new FirefoxDriver(sfopt); // driver.Manage().Cookies.DeleteAllCookies(); // driver.Manage().Timeouts().ImplicitWait = (TimeSpan.FromSeconds(15)); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(15)); //var x = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width; //var y = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height; //driver.Manage().Window.Size = new System.Drawing.Size(x,y); //Thread.Sleep(1000); //// Before each test driver.Manage().Window.Maximize(); wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60)); datafilePath = ConfigUtils.Read("TestDataPath"); libraryUi = new SIT_Library_UI(driver); iccPortal = new ICCBAMPageObj(driver); }
public OFU_SIT_Test() { var binary = new FirefoxBinary(ConfigUtils.Read("FirefoxPath")); // string path = ReadFirefoxProfile(); FirefoxProfile ffprofile = new FirefoxProfile(); // ffprofile.SetPreference("javascript.enabled","false"); driver = new FirefoxDriver(binary, ffprofile); // driver = new InternetExplorerDriver(internetExplorerDriverServerDirectory: "\\srv10177\\TEMPSHTIW$\\Desktop\\SIT\\SITSmokeTests\\IEDriverServer.exe"); driver.Manage().Cookies.DeleteAllCookies(); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(15)); // Before each test wait = new WebDriverWait(driver, TimeSpan.FromSeconds(60)); datafilePath = System.Environment.GetEnvironmentVariable("ProjectWorkingDirectory") + ConfigUtils.Read("TestDataPath"); sGMethods = new GeneralMethods(); intigrationmon = new MOnitorUI(driver); iccPortal = new ICCBAMPageObj(driver); }