コード例 #1
0
ファイル: Helpers.cs プロジェクト: qaFSBPT/automation
        // Create a Non-CAPTE user
        // Expects: Candidate Home Page to be loaded
        // Ends: Candidate Dashboard for the newly created user

        public static void CreateNonCAPTEUser(this RemoteWebDriver driver, string name)
        {
            AccountCreation createAccount = new AccountCreation(driver);

            //createAccount.goToAccountCreationPage();

            createAccount.SelectCountryOfEducation("USA");
            createAccount.selectSSN();
            createAccount.TypeInSSN("123456789");
            createAccount.SelectSchool("Unknown");
            createAccount.SelectDegreeLevel("Associates");
            createAccount.TypeInGraduationDate("1/1/2018");

            string[] names = name.Split();

            createAccount.TypeInLastName(names[1]);
            createAccount.TypeInFirstName(names[0]);
        }