public void verifyTextBoxMobilePhoneNumber(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String mobile = overviewTab.getTextBoxMobileNumber(); String verifyWorkMobileNumberPresentInTextBox = mobile.replaceAll("-", ""); Assert.assertEquals( verifyWorkMobileNumberPresentInTextBox, overviewData.getMobilePhone(), "Mobile nos not found"); AutomationLog.info("Expected Mobile Number found As per the Text Box"); }
public void testBannerMobileDetails(PageBanner banner, UserProfile overviewData) throws Exception { String mobileDetails = banner.getBannerMobilePhoneText(); String mobileToken[] = mobileDetails.split(": "); String formattedMobileNumber = formatPhoneNumber(overviewData.getMobilePhone()); Assert.assertEquals( mobileToken[1], formattedMobileNumber, "The correct Mobile number is not displayed in banner"); AutomationLog.info(" Updated MobileNumber found in banner"); }