Esempio n. 1
0
        public void start()
        {
            ChromeOptions options = new ChromeOptions();

            options.AddArgument("start-maximized");

            driver = new ChromeDriver(options);
            wait   = new WebDriverWait(driver, TimeSpan.FromSeconds(10));
            driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromMilliseconds(50);
            CountriesTest.loginToAdmin(driver, wait);
        }
Esempio n. 2
0
        public void windowTest()
        {
            driver.Url = "http://localhost/litecart/admin/?app=countries&doc=countries";
            wait.Until(ExpectedConditions.TitleContains("Countries | My Store"));
            var table = CountriesTest.getTable(driver, "form[name=countries_form] tr[class=row]", true, 0, 0);

            table[4][223].FindElement(By.CssSelector("a")).Click();
            wait.Until(ExpectedConditions.TitleContains("Edit Country | My Store"));

            var linkList = getLinkList(driver);

            foreach (var link in linkList)
            {
                checkWindow(driver, link);
                Thread.Sleep(200);
            }
            Thread.Sleep(1000);
        }