java.lang.AssertionError: expected [Fields with Clear Icon] but found [Clear Icon]
@Test(dataProvider = "byColumnName", description = "Verify displaying clear icon", priority = 1)
public void verifyDisplayingClearIconComponent(ControlTestData data, TestData testdata) {
driver = getDriver();
driver.get(url);
objHomePage = new LoginPage(driver)
.enterCredentials(testdata.username, testdata.password)
.loginSuccess();
logStep(StepStatus.PASS, "User should be able to login", "APP Login is Successful", true);
logStep(StepStatus.PASS, "It should display Clear Icon fields on the page", "Clear Icon component is displaying all fields successfully", true);
Assert.assertEquals(objClearIconPage.hasClearIconTitleDisplayed(), testdata.getComponentTitle());
logStep(StepStatus.PASS, "It should display Clear Icon Title", " Title is matching as expected", true);
}