Ejemplo n.º 1
0
        //To Do: Feed URL's
        public HomePage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;
            usStoreURL = test.baseURL;
            ukStoreURL = test.baseURL; //prod doesn't have a separate address for foreign languages
            beStoreURL = test.baseURL;
            digitalStoreURL = test.baseURL;//prod doesn't have a separate address for foreign languages
            dutchCategories = new string[3];
            frenchCategories = new string[3];
            driver.Open(usStoreURL);

            quality = new QualityCheck(test);

            Thread.Sleep(2000);
            searchInputText = driver.UnderlyingWebDriver.FindElement(By.Id("searchbox"));
                //By.XPath("//div[@id='search']//input[@name='keyWords']"));
            searchButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("searchbutton"));
                //By.XPath("//div[@id='search']//input[@value='search']"));
            wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("my cart"));
            //wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("wish list"));
            //categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("wrapper"));
            categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("checkin"));

            //Investigate reworking URL's
            /*
            properties = SeleniumPropertyManager.getInstance();
            usStoreURL = properties.getProperty("selenium.session.baseurl.us");
            ukStoreURL = properties.getProperty("selenium.session.baseurl.uk");
            beStoreURL = properties.getProperty("selenium.session.baseurl.be");
            digitalStoreURL = properties.getProperty("selenium.session.baseurl.digital");
             */
        }
Ejemplo n.º 2
0
 public ConnectUtility(ParentTest test)
 {
     selenium = test.selenium;
     baseurl = test.baseURL;
     quality = test.quality;
     currenttest = test;
 }
Ejemplo n.º 3
0
        //To Do: Feed URL's
        public HomePage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver           = webdriver;
            usStoreURL       = test.baseURL;
            ukStoreURL       = test.baseURL; //prod doesn't have a separate address for foreign languages
            beStoreURL       = test.baseURL;
            digitalStoreURL  = test.baseURL; //prod doesn't have a separate address for foreign languages
            dutchCategories  = new string[3];
            frenchCategories = new string[3];
            driver.Open(usStoreURL);

            quality = new QualityCheck(test);

            Thread.Sleep(2000);
            searchInputText = driver.UnderlyingWebDriver.FindElement(By.Id("searchbox"));
            //By.XPath("//div[@id='search']//input[@name='keyWords']"));
            searchButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("searchbutton"));
            //By.XPath("//div[@id='search']//input[@value='search']"));
            wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("my cart"));
            //wishlistLink = driver.UnderlyingWebDriver.FindElement(By.LinkText("wish list"));
            //categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("wrapper"));
            categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("checkin"));


            //Investigate reworking URL's

            /*
             * properties = SeleniumPropertyManager.getInstance();
             * usStoreURL = properties.getProperty("selenium.session.baseurl.us");
             * ukStoreURL = properties.getProperty("selenium.session.baseurl.uk");
             * beStoreURL = properties.getProperty("selenium.session.baseurl.be");
             * digitalStoreURL = properties.getProperty("selenium.session.baseurl.digital");
             */
        }
 public KenwoodFunctions(QualityCheck quality, WebDriverBackedSelenium driver)
 {
     var = Environment.GetEnvironmentVariable("locale");
     selenium = quality;
     seleniumdriver = driver;
     browser = Environment.GetEnvironmentVariable("browser");
 }
Ejemplo n.º 5
0
 public ConnectUtility(ParentTest test)
 {
     selenium    = test.selenium;
     baseurl     = test.baseURL;
     quality     = test.quality;
     currenttest = test;
 }
 public BillingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     //continueButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
     addressTable = new List<IWebElement>();
     quality = new QualityCheck(test);
 }
Ejemplo n.º 7
0
 //To Do: Rework verification
 public Header(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     headerDiv = driver.UnderlyingWebDriver.FindElement(By.LinkText("my account"));
     accountLink_US_UK = driver.UnderlyingWebDriver.FindElement(By.LinkText("nl_Votre compte"));
     accountLink_BE = driver.UnderlyingWebDriver.FindElement
         (By.XPath("//div[@id='account']/div/a[contains(@href, 'view-cart.ep')]"));
      */
     en_headerText_CustomerLoggedIn = new string[3];
     en_headerText_CustomerNotLoggedIn = new string[3];
     fr_headerText_CustomerLoggedIn = new string[3];
     fr_headerText_CustomerNotLoggedIn = new string[3];
     du_headerText_CustomerLoggedIn = new string[4];
     du_headerText_CustomerNotLoggedIn = new string[3];
     en_headerText_CustomerNotLoggedIn[0] = "items in my cart";
     en_headerText_CustomerNotLoggedIn[1] = "my account";
     en_headerText_CustomerNotLoggedIn[2] = "wish list";
     du_headerText_CustomerNotLoggedIn[0] = "nl_articles dans votre panier";
     du_headerText_CustomerNotLoggedIn[1] = "nl_Votre compte";
     du_headerText_CustomerNotLoggedIn[2] = "nl_Vos envies cadeaux";
     fr_headerText_CustomerNotLoggedIn[0] = "articles dans votre panier";
     fr_headerText_CustomerNotLoggedIn[1] = "Votre compte";
     fr_headerText_CustomerNotLoggedIn[2] = "Vos envies cadeaux";
     en_headerText_CustomerLoggedIn[0] = "items in my cart";
     en_headerText_CustomerLoggedIn[1] = "my account";
     en_headerText_CustomerLoggedIn[2] = "wish list";
     //properties = SeleniumPropertyManager.getInstance(properties); //These will be set up separately
     //browser = properties.getProperty();
     quality = new QualityCheck(test);
 }
Ejemplo n.º 8
0
        //To Do: Rework verification
        public Header(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * headerDiv = driver.UnderlyingWebDriver.FindElement(By.LinkText("my account"));
             * accountLink_US_UK = driver.UnderlyingWebDriver.FindElement(By.LinkText("nl_Votre compte"));
             * accountLink_BE = driver.UnderlyingWebDriver.FindElement
             *  (By.XPath("//div[@id='account']/div/a[contains(@href, 'view-cart.ep')]"));
             */
            en_headerText_CustomerLoggedIn       = new string[3];
            en_headerText_CustomerNotLoggedIn    = new string[3];
            fr_headerText_CustomerLoggedIn       = new string[3];
            fr_headerText_CustomerNotLoggedIn    = new string[3];
            du_headerText_CustomerLoggedIn       = new string[4];
            du_headerText_CustomerNotLoggedIn    = new string[3];
            en_headerText_CustomerNotLoggedIn[0] = "items in my cart";
            en_headerText_CustomerNotLoggedIn[1] = "my account";
            en_headerText_CustomerNotLoggedIn[2] = "wish list";
            du_headerText_CustomerNotLoggedIn[0] = "nl_articles dans votre panier";
            du_headerText_CustomerNotLoggedIn[1] = "nl_Votre compte";
            du_headerText_CustomerNotLoggedIn[2] = "nl_Vos envies cadeaux";
            fr_headerText_CustomerNotLoggedIn[0] = "articles dans votre panier";
            fr_headerText_CustomerNotLoggedIn[1] = "Votre compte";
            fr_headerText_CustomerNotLoggedIn[2] = "Vos envies cadeaux";
            en_headerText_CustomerLoggedIn[0]    = "items in my cart";
            en_headerText_CustomerLoggedIn[1]    = "my account";
            en_headerText_CustomerLoggedIn[2]    = "wish list";
            //properties = SeleniumPropertyManager.getInstance(properties); //These will be set up separately
            //browser = properties.getProperty();
            quality = new QualityCheck(test);
        }
Ejemplo n.º 9
0
 public BillingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     //continueButton = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
     addressTable = new List <IWebElement>();
     quality      = new QualityCheck(test);
 }
 public ShippingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     /*
     newAddressOption = driver.UnderlyingWebDriver.FindElement(By.Id("newAddressRadio"));
      */
 }
 public DeliveryOptionsPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     continueBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
      */
     quality = new QualityCheck(test);
 }
Ejemplo n.º 12
0
 public CartPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.Name("cartCheckout"));
      */
     quality = new QualityCheck(test);
 }
Ejemplo n.º 13
0
 public CreateAddressPage(Customer consumer, WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver        = webdriver;
     this.customer = consumer;
     address       = new Address(customer);
     customer.setAddress(address);
     quality = new QualityCheck(test);
 }
 public CreateAddressPage(Customer consumer, WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     this.customer = consumer;
     address = new Address(customer);
     customer.setAddress(address);
     quality = new QualityCheck(test);
 }
        public DeliveryOptionsPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * continueBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
             */
            quality = new QualityCheck(test);
        }
Ejemplo n.º 16
0
        public CartPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.Name("cartCheckout"));
             */
            quality = new QualityCheck(test);
        }
        public ShippingAddressPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);

            /*
             * newAddressOption = driver.UnderlyingWebDriver.FindElement(By.Id("newAddressRadio"));
             */
        }
 public ManageAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     /*
     addAddressBtn_US_UK= driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='Add Address']"));
     addAddressBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='nl_Ajouter Addresse']"));
      */
 }
Ejemplo n.º 19
0
 public SignInPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     /*
     accountDiv = driver.UnderlyingWebDriver.FindElement(By.Id("login-state-default"));
     registerButton = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='Register']"));
     registerButton_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Registre']"));
      */
 }
Ejemplo n.º 20
0
        public ManageAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);

            /*
             * addAddressBtn_US_UK= driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='Add Address']"));
             * addAddressBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//input[@value='nl_Ajouter Addresse']"));
             */
        }
Ejemplo n.º 21
0
 public ProductPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     /*
     price = driver.UnderlyingWebDriver.FindElement(By.Id("lowestPrice"));
     addToCartBtn = driver.UnderlyingWebDriver.FindElement(By.Id("addToCartSubmit"));
     productSku = driver.UnderlyingWebDriver.FindElement(By.Id("productSku"));
      */
     qualtiy = new QualityCheck(test);
 }
Ejemplo n.º 22
0
        public SignInPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);

            /*
             * accountDiv = driver.UnderlyingWebDriver.FindElement(By.Id("login-state-default"));
             * registerButton = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='Register']"));
             * registerButton_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Registre']"));
             */
        }
Ejemplo n.º 23
0
        public ProductPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;

            /*
             * price = driver.UnderlyingWebDriver.FindElement(By.Id("lowestPrice"));
             * addToCartBtn = driver.UnderlyingWebDriver.FindElement(By.Id("addToCartSubmit"));
             * productSku = driver.UnderlyingWebDriver.FindElement(By.Id("productSku"));
             */
            qualtiy = new QualityCheck(test);
        }
Ejemplo n.º 24
0
 public Connect_SignIn(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     base.id = "Connect Basic Sign In";
     base.baseURL = url;
     base.selenium = webdriver;
     base.verificationErrors = verrors;
     base.username = "******";
     base.password = "******";
     base.description = @"**In this test a user logs in, checks to make sure they are, and logs out**";
     quality = new QualityCheck(this);
     utility = new ConnectUtility(this);
 }
Ejemplo n.º 25
0
 public Connect_SignIn(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     base.id                 = "Connect Basic Sign In";
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.username           = "******";
     base.password           = "******";
     base.description        = @"**In this test a user logs in, checks to make sure they are, and logs out**";
     quality                 = new QualityCheck(this);
     utility                 = new ConnectUtility(this);
 }
 public Connect_Dashboard_ActivityNameTabs(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id = "Connect_Dashboard_ActivityNameTabs";  //Enter Test Name
     base.baseURL = url;  //Be sure to update the selenium.Open command with baseURL
     base.selenium = webdriver;
     base.verificationErrors = verrors;
     base.quality = new QualityCheck(this);
     base.description = "**Edit the names on the dashboard for the 2-5 tabs**";
     quality = new QualityCheck(this);
     utility = new ConnectUtility(this);
 }
 public Connect_Dashboard_ActivityNameTabs(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Connect_Dashboard_ActivityNameTabs"; //Enter Test Name
     base.baseURL            = url;                                  //Be sure to update the selenium.Open command with baseURL
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.quality            = new QualityCheck(this);
     base.description        = "**Edit the names on the dashboard for the 2-5 tabs**";
     quality                 = new QualityCheck(this);
     utility                 = new ConnectUtility(this);
 }
 public Connect_SignInValidation(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id = "Connect SignIn Validation";  //Enter Test Name
     base.baseURL = url;
     base.selenium = webdriver;
     base.verificationErrors = verrors;
     base.description = "**This test tries invalid combination of username and passwords to check validations, then logs in and out**";
     quality = new QualityCheck(this);
     utility = new ConnectUtility(this);
     username = "******";
     password = "******";
 }
 public Connect_SignInValidation(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Connect SignIn Validation"; //Enter Test Name
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.description        = "**This test tries invalid combination of username and passwords to check validations, then logs in and out**";
     quality                 = new QualityCheck(this);
     utility                 = new ConnectUtility(this);
     username                = "******";
     password                = "******";
 }
 public Connect_MeasurementSettings(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id = "Connect Measurement Settings";
     base.baseURL = url;
     base.selenium = webdriver;
     base.verificationErrors = verrors;
     base.username = "******";
     base.password = "******";
     base.description = "**This test logs and and changes to metric and back and makes sure the message is shown.**";
     quality = new QualityCheck(this);
     utility = new ConnectUtility(this);
 }
 public Connect_MeasurementSettings(string url, WebDriverBackedSelenium webdriver, StringBuilder verrors)
 {
     //****Enter in Script Name here****
     base.id                 = "Connect Measurement Settings";
     base.baseURL            = url;
     base.selenium           = webdriver;
     base.verificationErrors = verrors;
     base.username           = "******";
     base.password           = "******";
     base.description        = "**This test logs and and changes to metric and back and makes sure the message is shown.**";
     quality                 = new QualityCheck(this);
     utility                 = new ConnectUtility(this);
 }
        public BillingAndReviewPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;
            //cardHolderName = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardHolderName"));
            //cardType = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardType"));
            //cvvCode = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cvv2Code"));
            //expiryMonth = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryMonth"));
            //expiryYear = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryYear"));
            //saveCreditCard = driver.UnderlyingWebDriver.FindElement(By.Name("saveCreditCardForFutureUse"));
            //checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
            //cardNumber = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.unencryptedCardNumber"));

            divList = new List <IWebElement>();
            quality = new QualityCheck(test);
        }
        public BillingAndReviewPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver = webdriver;
            //cardHolderName = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardHolderName"));
            //cardType = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cardType"));
            //cvvCode = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.cvv2Code"));
            //expiryMonth = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryMonth"));
            //expiryYear = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.expiryYear"));
            //saveCreditCard = driver.UnderlyingWebDriver.FindElement(By.Name("saveCreditCardForFutureUse"));
            //checkoutBtn = driver.UnderlyingWebDriver.FindElement(By.ClassName("checkout-button"));
            //cardNumber = driver.UnderlyingWebDriver.FindElement(By.Id("orderPaymentFormBean.unencryptedCardNumber"));

            divList = new List<IWebElement>();
            quality = new QualityCheck(test);
        }
Ejemplo n.º 34
0
 public CategoryPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     subCategories_duOnTheRoad = new string[4];
     subCategories_frOnTheRoad = new string[4];
     subCategories_frOnTheRoad[0] = "fr_Motorcycles";
     subCategories_frOnTheRoad[1] = "fr_Automotive";
     subCategories_frOnTheRoad[2] = "fr_Trucking";
     subCategories_frOnTheRoad[3] = "fr_Maps";
     subCategories_duOnTheRoad[0] = "du_Motorcycles";
     subCategories_duOnTheRoad[1] = "du_Automotive";
     subCategories_duOnTheRoad[2] = "du_Trucking";
     subCategories_duOnTheRoad[3] = "du_Maps";
     categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("Side"));
     quality = new QualityCheck(test);
 }
Ejemplo n.º 35
0
 public CategoryPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     subCategories_duOnTheRoad    = new string[4];
     subCategories_frOnTheRoad    = new string[4];
     subCategories_frOnTheRoad[0] = "fr_Motorcycles";
     subCategories_frOnTheRoad[1] = "fr_Automotive";
     subCategories_frOnTheRoad[2] = "fr_Trucking";
     subCategories_frOnTheRoad[3] = "fr_Maps";
     subCategories_duOnTheRoad[0] = "du_Motorcycles";
     subCategories_duOnTheRoad[1] = "du_Automotive";
     subCategories_duOnTheRoad[2] = "du_Trucking";
     subCategories_duOnTheRoad[3] = "du_Maps";
     categoryDiv = driver.UnderlyingWebDriver.FindElement(By.Id("Side"));
     quality     = new QualityCheck(test);
 }
 public CreateAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     customer = new Customer();
     windowSet = new List<string>();
     /*
     name = driver.UnderlyingWebDriver.FindElement(By.Id("name"));
     userName = driver.UnderlyingWebDriver.FindElement(By.Id("username"));
     emailAddress = driver.UnderlyingWebDriver.FindElement(By.Id("email"));
     phone = driver.UnderlyingWebDriver.FindElement(By.Id("phoneNumber"));
     password = driver.UnderlyingWebDriver.FindElement(By.Id("password"));
     passwordConfirmation = driver.UnderlyingWebDriver.FindElement(By.Id("passwordMatch"));
     createAccountBtn = driver.UnderlyingWebDriver.FindElement(By.Id("submitBtn"));
     continueBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Continuer']"));
      */
     quality = new QualityCheck(test);
     utility = new ConnectUtility(test);
 }
Ejemplo n.º 37
0
 public ProductListPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
     //price = driver.UnderlyingWebDriver.FindElement(By.Id("Sort lowest to highest")); //Unable to find.  Look to use Selenium commands
     /*
     shopByPriceFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[1]/a"));
     shopByPriceFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
     shopByPriceFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
     shopByBrandFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[1]/a"));
     shopByBrandFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[2]/a"));
     shopByBrandFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[3]/a"));
     shopByBrandFilter4 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[4]/a"));
     shopByBrandFilter5 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[5]/a"));
     productNameDiv = driver.UnderlyingWebDriver.FindElement(By.Id("product-grid-1"));
     categoryDiv = driver.UnderlyingWebDriver.FindElement(By.ClassName("category"));
     sideMenuDiv = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/h2/.."));
     */
 }
Ejemplo n.º 38
0
        public CreateAccountPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver    = webdriver;
            customer  = new Customer();
            windowSet = new List <string>();

            /*
             * name = driver.UnderlyingWebDriver.FindElement(By.Id("name"));
             * userName = driver.UnderlyingWebDriver.FindElement(By.Id("username"));
             * emailAddress = driver.UnderlyingWebDriver.FindElement(By.Id("email"));
             * phone = driver.UnderlyingWebDriver.FindElement(By.Id("phoneNumber"));
             * password = driver.UnderlyingWebDriver.FindElement(By.Id("password"));
             * passwordConfirmation = driver.UnderlyingWebDriver.FindElement(By.Id("passwordMatch"));
             * createAccountBtn = driver.UnderlyingWebDriver.FindElement(By.Id("submitBtn"));
             * continueBtn_BE = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@class='fieldset-footer']/input[@value='nl_Continuer']"));
             */
            quality = new QualityCheck(test);
            utility = new ConnectUtility(test);
        }
Ejemplo n.º 39
0
        public ProductListPage(WebDriverBackedSelenium webdriver, ParentTest test)
        {
            driver  = webdriver;
            quality = new QualityCheck(test);
            //price = driver.UnderlyingWebDriver.FindElement(By.Id("Sort lowest to highest")); //Unable to find.  Look to use Selenium commands

            /*
             * shopByPriceFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[1]/a"));
             * shopByPriceFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
             * shopByPriceFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[1]/li[3]/a"));
             * shopByBrandFilter1 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[1]/a"));
             * shopByBrandFilter2 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[2]/a"));
             * shopByBrandFilter3 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[3]/a"));
             * shopByBrandFilter4 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[4]/a"));
             * shopByBrandFilter5 = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/ul[2]/li[5]/a"));
             * productNameDiv = driver.UnderlyingWebDriver.FindElement(By.Id("product-grid-1"));
             * categoryDiv = driver.UnderlyingWebDriver.FindElement(By.ClassName("category"));
             * sideMenuDiv = driver.UnderlyingWebDriver.FindElement(By.XPath("//div[@id='side-menu']/h2/.."));
             */
        }
Ejemplo n.º 40
0
 public Footer(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
 }
Ejemplo n.º 41
0
 public Footer(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver  = webdriver;
     quality = new QualityCheck(test);
 }
Ejemplo n.º 42
0
 public ReceiptPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver  = webdriver;
     quality = new QualityCheck(test);
 }
Ejemplo n.º 43
0
 public ReceiptPage(WebDriverBackedSelenium webdriver, ParentTest test)
 {
     driver = webdriver;
     quality = new QualityCheck(test);
 }