Example #1
0
        internal void RegisterAccount(List <RegisterTestDataObject> registerTestDataObjects)
        {
            for (int i = 0; i < registerTestDataObjects.Count; i++)
            {
                setName(registerTestDataObjects[i].CustomerName);
                SetDOb(registerTestDataObjects[i].DOB);
                SetAddress(registerTestDataObjects[i].Address);
                SetCity(registerTestDataObjects[i].City);
                SetState(registerTestDataObjects[i].State);
                SetPin(registerTestDataObjects[i].PIN);
                SetTeliphone(registerTestDataObjects[i].TelephoneNumber);
                SetEmail(registerTestDataObjects[i].Email);

                if (registerTestDataObjects[i].Gender.Equals("male"))
                {
                    FrameworkHelper.ClickElement(GenderXpath, IdentifierType.Xpath);
                }
                else if (registerTestDataObjects[i].Gender.Equals("Female"))
                {
                    FrameworkHelper.ClickElement(GenderXpath, IdentifierType.Xpath);
                }
                SubmitAccount();
                FrameworkHelper.ClickElement(SubmitName, IdentifierType.Name);

                if (registerTestDataObjects[i].status.Equals("valid"))
                {
                    //Actions actions = new Actions(FrameworkHelper.WebDriver);
                    //FrameworkHelper.WebDriver.SwitchTo().Alert().Accept();
                    //FrameworkHelper.WebDriver.SwitchTo().DefaultContent();
                }
            }
        }
Example #2
0
 internal void LoginAccount(string UserId, string Password)
 {
     FrameworkHelper.ClickElement(BankXpath, IdentifierType.Xpath);
     FrameworkHelper.SetTest(UserId, UseridName, IdentifierType.Name);
     FrameworkHelper.SetTest(Password, PasswordName, IdentifierType.Name);
     FrameworkHelper.ClickElement(LoginName, IdentifierType.Name);
 }
Example #3
0
 internal void clickNewCustomer()
 {
     FrameworkHelper.ClickElement(NewCustomerXpath, IdentifierType.Xpath);
 }
Example #4
0
 internal void Clicklogout()
 {
     FrameworkHelper.ClickElement(LogoutXpath, IdentifierType.Xpath);
 }
Example #5
0
 internal void SubmitAccount()
 {
     FrameworkHelper.ClickElement(SubmitName, IdentifierType.Name);
 }
Example #6
0
 public void ClickResetButton()
 {
     FrameworkHelper.ClickElement(Resetname, IdentifierType.Name);
 }
Example #7
0
 public void ClickLogout()
 {
     FrameworkHelper.ClickElement(LogoutXpath, IdentifierType.Xpath);
 }
Example #8
0
 public void ClickLoginButton()
 {
     FrameworkHelper.ClickElement(LoginName, IdentifierType.Name);
 }