Esempio n. 1
0
        public void enterGivenUsernameAndPasswordRefactored(string UsernameValue, string PasswordValue)
        {
            try
            {
                //wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions.ElementExists(By.Id(locatorValue)));
                CommonWait.ElementExists(driver, "Xapth", "UserName", 5);

                if (UsernameValue != null)
                {
                    GetEmail.SendKeys(UsernameValue);
                }
                else
                {
                    GetEmail.SendKeys("*****@*****.**");
                }

                if (PasswordValue != null)
                {
                    GetPassword.SendKeys(PasswordValue);
                }
                else
                {
                    GetPassword.SendKeys("Qwerty@123");
                }
            }
            catch (Exception msg)
            {
                Assert.Fail("Test failed at Login Page");
            }
        }
Esempio n. 2
0
        public void UpdateLangValue(string Language_Value, string LanguageLevel_Value)
        {
            IWebElement UpdateLang = driver.FindElement(By.CssSelector("input.ui:nth-child(1)"));

            UpdateLang.SendKeys(Language_Value);
            IWebElement   UpdateLangLevel        = driver.FindElement(By.CssSelector("select.ui"));
            SelectElement selectUpdatedLangLevel = new SelectElement(UpdateLangLevel);

            selectUpdatedLangLevel.SelectByText(LanguageLevel_Value);


            CommonWait.ElementExists(driver, "Xpath", "/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[2]/div/div[2]/div/table/tbody[1]/tr/td/div/span/input[1]", 5);

            ClickUpdateButton.Click();
        }
Esempio n. 3
0
 public void clickLangTab()
 {
     CommonWait.ElementExists(driver, "Xpath", "/html/body/div[1]/div/section[2]/div/div/div/div[3]/form/div[1]/a[1]", 5);
     GetClickLangMenu.Click();
 }
Esempio n. 4
0
 public void clickProfileTab()
 {
     CommonWait.ElementExists(driver, "Xpath", "/html/body/div[1]/div/section[1]/div/a[2]", 5);
     ProfileTab.Click();
 }