Esempio n. 1
0
        public static CategoryPage WaitForPage(IWebDriver driver)
        {
            var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));

            wait.Until(ExpectedConditions.ElementExists(
                           PageObjectExtensions.GetElementLocator <ManufacturerPage>(x => x.Breadcrumb)));

            wait.Until(ExpectedConditions.ElementExists(
                           PageObjectExtensions.GetElementLocator <ProductPage>(x => x.PhoneCallButton)));

            return(new CategoryPage(driver));
        }
Esempio n. 2
0
        public static InformationPage WaitForPage(IWebDriver driver)
        {
            var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));

            wait.Until(ExpectedConditions.ElementExists(
                           PageObjectExtensions.GetElementLocator <InformationPage>(x => x.Header)));

            wait.Until(ExpectedConditions.ElementExists(
                           PageObjectExtensions.GetElementLocator <ProductPage>(x => x.PhoneCallButton)));

            return(new InformationPage(driver));
        }
Esempio n. 3
0
        public static OrderPage WaitForPage(IWebDriver driver)
        {
            var wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10));

            //wait.Until(ExpectedConditions.ElementExists(
            //    PageObjectExtensions.GetElementLocator<OrderPage>(x => x._zoneInput)));

            wait.Until(ExpectedConditions.ElementExists(
                           PageObjectExtensions.GetElementLocator <OrderPage>(x => x.AddressInput)));

            wait.Until(ExpectedConditions.ElementExists(
                           PageObjectExtensions.GetElementLocator <ProductPage>(x => x.PhoneCallButton)));

            return(new OrderPage(driver));
        }