Ejemplo n.º 1
0
        public void TestFillUserForm(string titleId, string initial, string firstName, string middleName)
        {
            UserFormPageObject userFormPage = new UserFormPageObject(driver, userFormUrl);

            userFormPage.NavigateTo();

            userFormPage.FillUserForm(titleId, initial, firstName, middleName);
            userFormPage.btnSave.Submit();

            //string fieldValue = userFormPage.GetText(userFormPage.txtInitial);
        }
Ejemplo n.º 2
0
        public string TestDropDownSelection(string value)
        {
            UserFormPageObject userForm = new UserFormPageObject(driver, userFormUrl);

            userForm.NavigateTo();
            userForm.SetDropdownSelection(userForm.ddlTitleId, value, DropdrownSelection.ByText);

            string res = userForm.GetDropdownSelectedOption(userForm.ddlTitleId);

            return(res);
        }