Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }