Esempio n. 1
0
 public static void FillSignUpForm(string name, string orgName, string email)
 {
     POM.SignUpPage sup = new POM.SignUpPage();
     sup.txt_Name.Clear();
     sup.txt_Org_name.Clear();
     sup.txt_Email.Clear();
     sup.txt_Name.SendKeys(name);
     sup.txt_Org_name.SendKeys(orgName);
     sup.txt_Email.SendKeys(email);
     sup.chk_IAgree.Click();
     sup.btn_GetStarted.Click();
 }
Esempio n. 2
0
        public static List <string> GetDDList()
        {
            POM.SignUpPage sup = new POM.SignUpPage();
            sup.DDLlang.Click();

            List <string> ActualVal = new List <string>();

            IList <IWebElement> dropdown_list = DriverClass.driver.FindElements(By.XPath("//*[contains(@id,'ui-select-choices-row-1-')]//a//div"));

            foreach (IWebElement item in dropdown_list)
            {
                ActualVal.Add(item.Text);
            }
            return(ActualVal);
        }