Ejemplo n.º 1
0
        public void Case1()
        {
            var PracticeForm = new PracticeForm(driver);

            PracticeForm.GotoUrl("https://demoqa.com/");
            PracticeForm.NavigateToForm();
            PracticeForm.ClickPracticeForm();
            PracticeForm.FillForm("Rumina", "Merchant", "012344566787542", "Female");
            PracticeForm.SubmitForm();
            Assert.AreEqual("Thanks for submitting the form", PracticeForm.getTxt());
        }
Ejemplo n.º 2
0
        public void Case2()
        {
            var PracticeForm = new PracticeForm(driver);

            PracticeForm.GotoUrl("https://demoqa.com/");
            PracticeForm.NavigateToForm();
            PracticeForm.ClickPracticeForm();
            PracticeForm.SubmitForm();
            Assert.True(PracticeForm.IsRequired(PracticeForm.FirstName, "required"));
            Assert.True(PracticeForm.IsRequired(PracticeForm.LastName, "required"));
            Assert.True(PracticeForm.IsRequired(PracticeForm.Number, "required"));
            Assert.True(PracticeForm.IsRequired(PracticeForm.Male, "required"));
            Assert.True(PracticeForm.IsRequired(PracticeForm.Female, "required"));
            Assert.True(PracticeForm.IsRequired(PracticeForm.Other, "required"));
        }