public void verifyIfMoreThanFiveNeighborhoodsCanBeAddedInSpecializedNeighborhoods() throws Exception { overviewTab.clickOnNeighborhoodDropdown(); Assert.assertEquals( overviewTab.msg_SelectionLimit().getText(), "You can only select 5 items", "Expected message is not shown"); AutomationLog.info("Message is shown if try to add more than 5 neighborhoods "); }
public void addNeighborhoodsInSpecializedNeighborhoods(HashMap<String, String> getNeighborhood) throws Exception { overviewTab.clickOnNeighborhoodDropdown(); overviewTab.selectNeighborhood(getNeighborhood.get("neighbor1")); overviewTab.clickOnNeighborhoodDropdown(); overviewTab.selectNeighborhood(getNeighborhood.get("neighbor2")); overviewTab.clickOnNeighborhoodDropdown(); overviewTab.selectNeighborhood(getNeighborhood.get("neighbor3")); overviewTab.clickOnNeighborhoodDropdown(); overviewTab.selectNeighborhood(getNeighborhood.get("neighbor4")); overviewTab.clickOnNeighborhoodDropdown(); overviewTab.selectNeighborhood(getNeighborhood.get("neighbor5")); AutomationLog.info("Successfully added Neighborhoods in Specialized Neighborhoods "); }
public void verifyTextBoxAddress2(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String verifyAddress2PresentInTextBox = overviewTab.getTextBoxAddress2(); Assert.assertEquals( verifyAddress2PresentInTextBox, overviewData.getAddress2(), "Address2 not found"); AutomationLog.info("Expected Address2 found As per the Text Box"); }
public void verifyTextBoxNeigborhood(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String verifyNeighborhoodPresentInTextBox = overviewTab.getMultipleSelectNeighborhood(); Assert.assertEquals( verifyNeighborhoodPresentInTextBox, overviewData.getNeighbour(), "Neigborhood not found"); AutomationLog.info("Expected Neighborhood found As per the Text Box"); }
public void verifyTextBoxComapnyName(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String verifyComapnyNamePresentInTextBox = overviewTab.getTextBoxCompanyName(); Assert.assertEquals( verifyComapnyNamePresentInTextBox, overviewData.getCompanyName(), "company name not found"); AutomationLog.info("Expected Company Name found As per the Text Box"); }
public void verifyTextBoxDescribeYourself(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String verifydescribeYourselfPresentInTextBox = overviewTab.getTextBoxDescribeYorself(); Assert.assertEquals( verifydescribeYourselfPresentInTextBox, overviewData.getDescribe(), "Describe yourself not found"); AutomationLog.info("Expected Description found As per the Text Box"); }
public void verifyTextBoxWorkPhoneNumber(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String work = overviewTab.getTextBoxWorkPhoneNumber(); String verifyWorkPhoneNumberPresentInTextBox = work.replaceAll("-", ""); Assert.assertEquals( verifyWorkPhoneNumberPresentInTextBox, overviewData.getWorkPhone(), "Workphone nos not found"); AutomationLog.info("Expected Work Phone number found As per the Text Box"); }
@Override protected void verifyTestCases() throws Exception { UserProfile userData = getTestOverviewData(); overviewTab.populateOverviewDetails(userData); overviewTab = overviewTab.saveOverviewDetails(); WaitFor.waitForPageToLoad( Page.driver, overviewTab.msg_SuccessAfterSave().getText(), overviewTab.neighborhoodlocator()); pageBanner = dashboard.pageBanner(); WaitFor.waitForPageToLoad(Page.driver, userData.getName(), pageBanner.getBannerTextLocater()); verifyUpdatedOverviewBanner(pageBanner, userData); verifyUpdatedOverviewTabForm(overviewTab, userData); verifyIfEmailFieldIsEditable(); verifyIfClickingSpecializedNeighborhoodsShowsDropDownToSelectNeighborhoods(); verifyIfMoreThanFiveNeighborhoodsCanBeAddedInSpecializedNeighborhoods(); }
public void verifyIfClickingSpecializedNeighborhoodsShowsDropDownToSelectNeighborhoods() throws Exception { HashMap<String, String> getNeighborhood = testCaseData.get("NeighborHoods"); overviewTab.clearSpecializedNeighborhoodsTextBox(); addNeighborhoodsInSpecializedNeighborhoods(getNeighborhood); overviewTab.saveOverviewDetails(); WaitFor.waitForPageToLoad( Page.driver, overviewTab.msg_SuccessAfterSave().getText(), overviewTab.neighborhoodlocator()); List<String> neighbors = new ArrayList<String>(); List<WebElement> elements = overviewTab.addedNeighborhoods(); for (WebElement ele : elements) { neighbors.add(ele.getText()); } Assert.assertEquals( neighbors.contains(getNeighborhood.get("neighbor1")), true, "Excpected neighborhood is not added"); AutomationLog.info( "Clicking Specialized neighborhoods shows drop down to selects neighborhoods successfully"); }
public void verifyTextBoxZip(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String verifyZipPresentInTextBox = overviewTab.getTextBoxZip(); Assert.assertEquals(verifyZipPresentInTextBox, overviewData.getZipCode(), "Zip not found"); AutomationLog.info("Expected Zip found As per the Text Box"); }
public void verifyTextBoxState(OverviewTab overviewTab, UserProfile overviewData) throws Exception { String verifyStatePresentInTextBox = overviewTab.getDropdownState(); Assert.assertEquals(verifyStatePresentInTextBox, overviewData.getState(), "State not found"); AutomationLog.info("Expected State found As per the Text Box"); }
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"); }
private void verifyIfEmailFieldIsEditable() throws Exception { Assert.assertEquals(overviewTab.default_Email().isEnabled(), false, "Field is editable"); AutomationLog.info("Email field is not editable is Successful"); }