Example #1
0
 public void Enter_Registration_Details()
 {
     common.WaitFunctionality(CommonActions.Wait.WaitForElement, CommonActions.LocatorType.byid, WatsUpWelcomePage.WatsUp.countryDDLBtn, "Country Drop Down List", 120);
     common.WaitFunctionality(CommonActions.Wait.WaitForElement, CommonActions.LocatorType.byid, WatsUpWelcomePage.WatsUp.countryDDLBtn, "Country Drop Down List", 100);
     common.UserAction(CommonActions.Action.Click, CommonActions.LocatorType.byid, WatsUpWelcomePage.WatsUp.countryDDLBtn, "Country Drop Down List");
     common.WaitFunctionality(CommonActions.Wait.WaitForElement, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.countryDDL, "Country List", 180);
     common.UserAction(CommonActions.Action.SwipeByElements, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.countryDDL, "Country List", "", "", -1, 6, 1, -1);
     common.UserAction(CommonActions.Action.SwipeByElements, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.countryDDL, "Country List", "", "", -1, 6, 1, -1);
     common.UserAction(CommonActions.Action.SwipeByElements, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.countryDDL, "Country List", "", "", -1, 6, 1, -1);
     common.UserAction(CommonActions.Action.SwipeByElements, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.countryDDL, "Country List", "", "", -1, 1, 6, -1);
     common.UserAction(CommonActions.Action.SwipeByElements, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.countryDDL, "Country List", "", "", -1, 1, 6, -1);
     common.UserAction(CommonActions.Action.SwipeByElements, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.countryDDL, "Country List", "", "", -1, 1, 6, -1);
     common.UserAction(CommonActions.Action.Click, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.selectCountry, "India");
     common.WaitFunctionality(CommonActions.Wait.WaitForElement, CommonActions.LocatorType.byid, WatsUpWelcomePage.WatsUp.phoneTxt, "Phone Textbox", 100);
     common.UserAction(CommonActions.Action.Click, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.okBtn, "Ok Button");
     common.Assertion(CommonActions.Check.TextExists, CommonActions.LocatorType.byid, WatsUpWelcomePage.WatsUp.confirmMsg, "Phone Number Validations Message", "Please enter your phone number.");
     common.UserAction(CommonActions.Action.Click, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.okBtn, "Ok Button");
     common.WaitFunctionality(CommonActions.Wait.WaitForElement, CommonActions.LocatorType.byid, WatsUpWelcomePage.WatsUp.phoneTxt, "Phone Textbox", 100);
     common.UserAction(CommonActions.Action.TypeText, CommonActions.LocatorType.byid, WatsUpWelcomePage.WatsUp.phoneTxt, "Phone Textbox", "9440659594");
     common.UserAction(CommonActions.Action.Click, CommonActions.LocatorType.byxpath, WatsUpWelcomePage.WatsUp.okBtn, "Ok Button");
 }