예제 #1
0
        public void VerifyFields(Table table)
        {
            Genericpage.GetCBILSTextfieldByCss("Name").WaitUntilElementIsDisplayed();
            var fields = table.CreateInstance <CBILSBusinessLookUp>();

            Genericpage.GetCBILSTextfieldByCss("Name").GetText().ShouldEqual(fields.RelationshipName);
            Genericpage.GetCBILSTextfieldByCss("BillingStreet").GetText().ShouldEqual(fields.BillingStreet);
            Genericpage.GetCBILSTextfieldByCss("BillingCity").GetText().ShouldEqual(fields.BillingCity);
            Genericpage.GetCBILSTextfieldByCss("BillingPostalCode").GetText().ShouldEqual(fields.PostalCode);
        }
예제 #2
0
        public SelfRegistrationPage EnterUserDetails(Table table)
        {
            var user = table.CreateInstance <User>();

            GenericPage.GetTextFieldByxPath("firstName").WaitUntilElementIsDisplayed();
            GenericPage.GetTextFieldByxPath("firstName").IsDisplayed().ShouldBeTrue("Firstname field is not displayed");
            GenericPage.GetTextFieldByxPath("firstName").EnterText(user.FirstName);
            GenericPage.GetTextFieldByxPath("lastName").EnterText(user.LastName);
            GenericPage.GetTextFieldByxPath("email").EnterText(user.Email);
            GenericPage.GetTextFieldByxPath("mobile").EnterText(user.Mobile);
            return(new SelfRegistrationPage());
        }
예제 #3
0
        public SelfRegistrationPage VerifyFields(Table table)
        {
            EntityNameField.WaitUntilElementVisible();
            var fields = table.CreateInstance <ABRSearch>();

            EntityNameField.Text.ShouldEqual(fields.EntityName);
            ABNField.Text.ShouldEqual(fields.ABN);
            EntityTypeField.Text.ShouldEqual(fields.EntityType);
            ASICField.Text.ShouldEqual(fields.ASICRegistration);
            BusinessState.Text.ShouldEqual(fields.BusinessLocationState);
            BusinessPostCode.Text.ShouldEqual(fields.BusinessPostcode);
            return(new SelfRegistrationPage());
        }