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")); }