Пример #1
0
        public void RecruitmentFormValidationsTest()
        {
            CommonActions       commonActions       = new CommonActions(driver);
            RecruitmentFormPage applicationFormPage = new RecruitmentFormPage(driver);
            ThankYouPage        thankYouPage        = new ThankYouPage(driver);

            commonActions.openURL("https://system.erecruiter.pl/FormTemplates/RecruitmentForm.aspx?WebID=c907acdcca724851bbc924b001609f67");
            applicationFormPage.sendForm();
            applicationFormPage.assertAllRequiredElementsNotFilledAlertAppears();
            applicationFormPage.inputName("Jan");
            applicationFormPage.inputSurname("Testowy");
            applicationFormPage.inputEmail("Jan.Testowypracuj.pl");
            applicationFormPage.inputPhoneNo("qwertyuio");
            applicationFormPage.selectCountry("Hiszpania");
            applicationFormPage.inputCity("Madryt");
            applicationFormPage.sendForm();
            applicationFormPage.assertImproperEmailFormatAlertAppears();
            applicationFormPage.assertPhoneNoNotFilledAlertAppears();
            applicationFormPage.inputEmail("Jan.Testowy@pracujpl");
            applicationFormPage.inputPhoneNo("692558963");
            applicationFormPage.sendForm();
            applicationFormPage.assertImproperEmailFormatAlertAppears();
            applicationFormPage.inputEmail("*****@*****.**");
            applicationFormPage.uploadCV(projectPath + "\\Test CV.pdf");
            applicationFormPage.deleteUploadedCV();
            applicationFormPage.sendForm();
            applicationFormPage.assertAttachmentRequiredAlertAppears();
            applicationFormPage.uploadCV(projectPath + "\\Test CV.pdf");
            applicationFormPage.sendForm();
            thankYouPage.assertSuccessfulApplication();
        }
Пример #2
0
        public void RecruitmentFormTest()
        {
            CommonActions       commonActions       = new CommonActions(driver);
            RecruitmentFormPage applicationFormPage = new RecruitmentFormPage(driver);
            ThankYouPage        thankYouPage        = new ThankYouPage(driver);

            commonActions.openURL("https://system.erecruiter.pl/FormTemplates/RecruitmentForm.aspx?WebID=c907acdcca724851bbc924b001609f67");
            applicationFormPage.disableCookieInfo();
            applicationFormPage.inputName("Jan");
            applicationFormPage.inputSurname("Testowy");
            applicationFormPage.inputEmail("*****@*****.**");
            applicationFormPage.inputPhoneNo("692558963");
            applicationFormPage.selectCountry("Polska");
            applicationFormPage.selectRegion("mazowieckie");
            applicationFormPage.inputCity("Warszawa");
            applicationFormPage.uploadCV(projectPath + "\\Test CV.pdf");
            applicationFormPage.sendForm();
            thankYouPage.assertSuccessfulApplication();
        }