public void verifyTextBoxCity(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String verifyCityPresentInTextBox = overviewTab.getTextBoxCity(); Assert.assertEquals(verifyCityPresentInTextBox, overviewData.getCity(), "City not found"); AutomationLog.info("Expected City found As per the Text Box"); }