public void Case1() { practiceForm = new PracticeFormPage(driver); practiceForm.NavigateToForm(); practiceForm.FillForm(); Assert.True(driver.FindElement(By.Id("example-modal-sizes-title-lg")).Displayed); }
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")); }