Пример #1
0
        public HomePage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Home\\HomePage.json");
            _searchBox   = PageElements["searchBox"];
            _searchbBtn  = PageElements["searchbBtn"];
        }
Пример #2
0
 public GameDetailsPage(IWebDriver driver)
 {
     _driver       = driver;
     pageElements  = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + @"GameDetails\GameDetails.json");
     _addToCartBtn = pageElements["addToCartBtn"];
     _gameName     = pageElements["gameName"];
     _screeShots   = pageElements["screeShots"];
     _quantityDdl  = pageElements["quantityDdl"];
 }
        public ResturantSelectionPage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements        = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Orders\\ResturantSelectionPage.json");
            _resturantSearchBox = PageElements["resturantSearchBox"];
            _resturantList      = PageElements["resturantList"];
        }
        public OrderVerificationPage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Orders\\OrderVerificationPage.json");

            _orderId       = PageElements["orderId"];
            _resturantName = PageElements["resturantName"];
        }
        public PaymentConfirmationPage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements    = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Payment\\PaymentConfirmationPage.json");
            _cancelBtn      = PageElements["cancelBtn"];
            _yesBtn         = PageElements["yesBtn"];
            _saveCookiesBtn = PageElements["saveCookiesBtn"];
            _tryAgainBtn    = PageElements["tryAgainBtn"];
        }
Пример #6
0
        public LoginPage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements       = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Login\\LoginPage.json");
            _emailTextfield    = PageElements["emailTextfield"];
            _nextBtn           = PageElements["nextBtn"];
            _passwordTextField = PageElements["passwordTextField"];
            _nextBtn2          = PageElements["nextBtn2"];
        }
        public PaymentDetailsPage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements      = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Payment\\PaymentDetailsPage.json");
            _idealMethodBtn   = PageElements["idealMethodBtn"];
            _cashMethodBtn    = PageElements["cashMethodBtn"];
            _addressText      = PageElements["addressText"];
            _townText         = PageElements["townText"];
            _surNameText      = PageElements["surNameText"];
            _emailAddressText = PageElements["emailAddressText"];
            _phoneNumberText  = PageElements["phoneNumberText"];
            _buyNowBtn        = PageElements["buyNowBtn"];
        }
Пример #8
0
        public HomePage(IWebDriver driver)
        {
            pageElements = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + @"Home\Home.json");

            _gameBtn = pageElements["gameBtn"];
            _rightSliderController = pageElements["rightSliderController"];
            _leftSliderController  = pageElements["leftSliderController"];
            _slider              = pageElements["slider"];
            _gameItemsList       = pageElements["gameItemsList"];
            _shoppingMenuItem    = pageElements["shoppingMenuItem"];
            _shoppingBagItemText = pageElements["shoppingBagItemText"];
            lastitemInGameList   = 0;
            _addToCartItem       = pageElements["addToCartItem"];
            gameName             = string.Empty;
            driver = this.driver;
        }
        public OrderCreationPage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Orders\\OrderCreationPage.json");

            _mealsList      = PageElements["mealsList"];
            _mealNameList   = PageElements["mealNameList"];
            _addOneBtn      = PageElements["addOneBtn"];
            _drinkDdl       = PageElements["drinkDdl"];
            _addMainDishBtn = PageElements["addMainDishBtn"];
            _basketBtn      = PageElements["basketBtn"];
            _commentBtn     = PageElements["commentBtn"];
            _commentText    = PageElements["commentText"];
            _OrderBtn       = PageElements["OrderBtn"];
        }
Пример #10
0
        public HomePage(IWebDriver driver)
        {
            this.driver = driver;
            AutomatedActions.NavigationActions.InitBrowser(driver);

            PageElements         = ElementParser.Initialize_Page_Elements(ApplicationConfigs.ObjectRepository + "Home\\HomePage.json");
            _composeBtn          = PageElements["composeBtn"];
            _toTextField         = PageElements["toTextField"];
            _subjectTextField    = PageElements["subjectTextField"];
            _body                = PageElements["body"];
            _threeDotsBtn        = PageElements["threeDotsBtn"];
            _labelOptions        = PageElements["labelOptions"];
            _socialCheckBox      = PageElements["socialCheckBox"];
            _sendBtn             = PageElements["sendBtn"];
            _inbox               = PageElements["inbox"];
            _firstMailStarred    = PageElements["firstMailStarred"];
            _myReceivedMail      = PageElements["myReceivedMail"];
            _receivedMailSubject = PageElements["receivedMailSubject"];
        }