Esempio n. 1
0
        //public LoginPage(IWebDriver driver) : base (driver)
        //{
        //    this.InitializeWebElements();
        //}
        #endregion


        private void InitializeWebElements()
        {
            //Selectors and locators declarations here

            emailField.findsBy = By.Id(emailField.locator);

            passwordField.findsBy = By.Id(passwordField.locator);

            loginButton.findsBy = By.XPath(loginButton.locator);

            //Get the web elements by the generic helper


            emailField.webElement = Helper.GetElementWait(emailField.findsBy);

            passwordField.webElement = Helper.GetElementWait(passwordField.findsBy);

            loginButton.webElement = Helper.GetElementWait(loginButton.findsBy);
        }
Esempio n. 2
0
 public bool GetStatusColor(string hexColor)
 {
     return(OrdersHelper.ToRGBAColor(hexColor)
            .Equals(_helper.GetElementWait(this.statusValue.findsBy).GetCssValue("color")));
 }