Ejemplo n.º 1
0
        public void Case1()
        {
            practiceForm = new PracticeFormPage(driver);
            practiceForm.NavigateToForm();
            practiceForm.FillForm();

            Assert.True(driver.FindElement(By.Id("example-modal-sizes-title-lg")).Displayed);
        }
Ejemplo n.º 2
0
        public void Case2()
        {
            practiceForm = new PracticeFormPage(driver);
            driver.Navigate().GoToUrl("https://demoqa.com/");
            practiceForm.NavigateToForm();
            practiceForm.ScrollAndSubmit();

            Assert.True(practiceForm.IsAttributePresent(practiceForm.firstNameField, "required"));
            Assert.True(practiceForm.IsAttributePresent(practiceForm.lastNameField, "required"));
            Assert.True(practiceForm.IsAttributePresent(practiceForm.maleRadioBtn, "required"));
            Assert.True(practiceForm.IsAttributePresent(practiceForm.femaleRadioBtn, "required"));
            Assert.True(practiceForm.IsAttributePresent(practiceForm.otherRadioBtn, "required"));
            Assert.True(practiceForm.IsAttributePresent(practiceForm.mobileNumField, "required"));
        }