Пример #1
0
 public AppSearch(IWebDriver driver)
 {
     this._driver = driver;
     this._appLog = new AppLoginLogout(_driver);
     this._user   = new UserData();
     this._rec    = new RecData();
     this._school = new SchoolData();
     this._utils  = new DriverUtilities(_driver);
     this._nav    = new Navigate(_driver);
 }
Пример #2
0
        /// <summary>
        /// Navigate App Search Rec page. Assumes the user is already logged in
        /// </summary>
        public void NavigateToSearchPage(IWebDriver driver)
        {
            // Creating a new instance keeps LogInUser() argument free;
            // otherwise, we'd need to call it like so: LogInUser(driver) to get the correct IWebDriver instance
            AppLoginLogout app = new AppLoginLogout(driver);

            app.LogInUser();

            //_utils.ExplicitWait(driver, "loadingContainer");
            _utils.Click(DriverUtilities.ElementAccessorType.ID, "loadingContainer");
            _utils.Click(DriverUtilities.ElementAccessorType.XPath, "//*[@data-bind='click:MenuBar.redirectToAppRecSearch']");
        }