コード例 #1
0
  @Then("^I should see \"([^\"]*)\" in the confirmation form$")
  public void ConfirmationMessage(String Message) throws Throwable {
    System.out.println("ConfirmationMessage Assertion: " + detailPage.ThankYouMessage());

    Assert.assertTrue("No Confirmation Message", detailPage.ThankYouMessage().equals(Message));
    System.out.println(
        "Is Confirmation Message Displayed: " + detailPage.ThankYouMessage().equals(Message));
  }
コード例 #2
0
  @Then("^I should see \"([^\"]*)\" as the value for the down payment$")
  public void MatchCreditScoreValue(String Message) throws Throwable {
    detailPage = new DetailPage(driver);
    String msg = Message;
    System.out.println("---------------Function called-----------------------------" + msg);

    System.out.println("ConfirmationMessage Assertion: " + detailPage.MatchCreditScore(msg));

    Assert.assertTrue("No Confirmation Message", detailPage.MatchCreditScore(msg).equals(Message));
    System.out.println(
        "Is Confirmation Message Displayed: " + detailPage.MatchCreditScore(msg).equals(Message));
  }
コード例 #3
0
  @Then(
      "^I should see \"([^\"]*)\" as the title for the estimated mortgage rate module header at position 6$")
  public void MatchMessage(String Message) throws Throwable {
    String msg = Message;
    System.out.println("---------------Function called-----------------------------" + msg);

    System.out.println("ConfirmationMessage Assertion: " + detailPage.MatchMortageMessage(msg));

    Assert.assertTrue(
        "No Confirmation Message", detailPage.MatchMortageMessage(msg).equals(Message));
    System.out.println(
        "Is Confirmation Message Displayed: "
            + detailPage.MatchMortageMessage(msg).equals(Message));
  }
コード例 #4
0
  @Then("^I should see \"([^\"]*)\" in the mortgage rate page$")
  public void MatchRatePageMessage(String Message) throws Throwable {
    String msg = Message;
    System.out.println("---------------Function called-----------------------------" + msg);
    detailPage = new DetailPage(driver);
    System.out.println(
        "ConfirmationMessage Assertion: " + detailPage.MatchRatePageMortageMessage(msg));

    Assert.assertTrue(
        "No Confirmation Message", detailPage.MatchRatePageMortageMessage(msg).equals(Message));
    System.out.println(
        "Is Confirmation Message Displayed: "
            + detailPage.MatchRatePageMortageMessage(msg).equals(Message));
  }
コード例 #5
0
  @Then("^I see the Agent Contact Form from sticky header$")
  public void isStickyAgentFormPresent() throws Throwable {

    boolean status = detailPage.IsStickyAgentCardPresent();
    Assert.assertTrue("No Credit Repair Form", status);
    System.out.println("Is Lead Form Displayed: " + status);
  }
コード例 #6
0
  @Then("^I click the View More Schools Nearby link$")
  public void I_click_the_View_More_Schools_Nearby_link_FS() throws Throwable {

    searchPage = detailPage.ClickViewMoreSchoolsLink();
    driver.manage().timeouts().pageLoadTimeout(3000, TimeUnit.SECONDS);
    System.out.println("Clicked the more schools link");
  }
コード例 #7
0
  @Then("^I should see \"([^\"]*)\" as a paragraph in the bankrate disclaimer1$")
  public void MatchDisclamierSecondPara(String Message) throws Throwable {
    Thread.sleep(20000);
    String msg = Message;
    System.out.println("---------------Function called-----------------------------" + msg);
    detailPage = new DetailPage(driver);

    System.out.println(
        "ConfirmationMessage Assertion: " + detailPage.MatchDisclamierSecondPara(msg));

    Assert.assertTrue(
        "No Confirmation Message", detailPage.MatchDisclamierSecondPara(msg).equals(Message));
    System.out.println(
        "Is Confirmation Message Displayed: "
            + detailPage.MatchDisclamierSecondPara(msg).equals(Message));
  }
コード例 #8
0
  @Given("I am on an FRC details page$")
  public void NavigateToFRC_UDP() throws Throwable {
    detailPage = new DetailPage(driver);
    detailPage.NavigateToFRC_UDP();

    System.out.println("Executed For Rent UDP navigation");
  }
コード例 #9
0
  @And("^I click the Send button$")
  public void SubmitForm() throws Throwable {

    detailPage.ClickSubmitButton();
    System.out.println("Submitted Form");
    driver.manage().timeouts().pageLoadTimeout(3000, TimeUnit.SECONDS);
  }
コード例 #10
0
  @Then("^I can see the Estimated Mortgage Rates Module$")
  public void SeeEstimateMortageRate() throws Throwable {
    detailPage = new DetailPage(driver);
    detailPage.SeeEstimateMortageRateModule();

    // detailPage.navigateToBuilderUDP();
    System.out.println("Executed Sale navigation");
  }
コード例 #11
0
  @And("^Click on Update Button$")
  public void ClickUpdateButton() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickUpdateButtonObListingType();
    // System.out.println("Submitted Form");

  }
コード例 #12
0
  @Then("^I scroll down couple of times$")
  public void ScrollPopertyDetailPage() throws Throwable {
    detailPage = new DetailPage(driver);
    detailPage.ScrollMortgagePopertyDetailPageUDP();

    // detailPage.navigateToBuilderUDP();
    System.out.println("Executed Sale navigation");
  }
コード例 #13
0
  @Given("I am on a builders listing$")
  public void NavigateToBuilderUDP() throws Throwable {
    detailPage = new DetailPage(driver);
    detailPage.NavigateToBuilderUDP();

    // detailPage.navigateToBuilderUDP();
    System.out.println("Executed Builder UDP navigation");
  }
コード例 #14
0
  @And("^I click RESIDENTIAL property type$")
  public void ClickresidentialProperty() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickresidentialPropertyType();
    // System.out.println("Submitted Form");

  }
コード例 #15
0
  @Then("I see addtional property form$")
  public void AddtinalProperty() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.AddtinalPropertyform();
    // System.out.println("Submitted Form");

  }
コード例 #16
0
  @And("I click contact now button on new popup$")
  public void ClickContactNowButton() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickContactNowButtonOnFRC();
    // System.out.println("Submitted Form");

  }
コード例 #17
0
  @And("^Close the popup window$")
  public void ClosePopupwindow() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.CloseMilitaryPopupwindow();
    // System.out.println("Submitted Form");

  }
コード例 #18
0
  @And("Click listing drop down on sale page$")
  public void ClicklistingdroponSalePage() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClicklistingdropdownonSalepage();
    // System.out.println("Submitted Form");

  }
コード例 #19
0
  @And("^I click APARTMENT property type$")
  public void ClickAppartmentProperty() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickApartmentPropertyTypeType();
    // System.out.println("Submitted Form");

  }
コード例 #20
0
  @And("^I click CONDOMINIUM property type$")
  public void ClickCondominiumProperty() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickCondominumPropertyType();
    // System.out.println("Submitted Form");

  }
コード例 #21
0
  @And("^I click TOWNHOUSE property type$")
  public void ClickTownHouseProperty() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickTownHousePropertyType();
    // System.out.println("Submitted Form");

  }
コード例 #22
0
  @Then("I drag the credit score slider all the way to the left$")
  public void DragSlider() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.DragSliderLeft();
    // System.out.println("Submitted Form");

  }
コード例 #23
0
  @Then("I click the bankrate Disclaimer$")
  public void ClickDisclaimerbutton() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickBankDisclaimerlink();
    // System.out.println("Submitted Form");

  }
コード例 #24
0
  @Then("^I can see the bankrate downpayment slider$")
  public void BankRateDownPayementSlider() throws Throwable {
    detailPage = new DetailPage(driver);
    detailPage.MortageBankRateDownPayementScoreSlider();

    // detailPage.navigateToBuilderUDP();
    System.out.println("Executed Sale navigation");
  }
コード例 #25
0
  @And("^Click property type drop down$")
  public void PropertyTypeDrop() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.PropertyTypeDropDown();
    // System.out.println("Submitted Form");

  }
コード例 #26
0
  @And("^Click senior community listing type$")
  public void ClickSeniorCommunityListing() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickSeniorCommunityListingType();
    // System.out.println("Submitted Form");

  }
コード例 #27
0
  @And("^Click on Update Button on Property type dopdown$")
  public void UpdateButtononProperpty() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.UpdateButtononProperptyDropDown();
    // System.out.println("Submitted Form");

  }
コード例 #28
0
  @Then("I click the bankrate See Additional Rates button$")
  public void ClickBankRateAdditiobalButton() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickBankRateAdditiobalButtonlink();
    // System.out.println("Submitted Form");

  }
コード例 #29
0
  @And("^Click CORPORATE HOUSING listing type$")
  public void ClickCorporateGousingListing() throws Throwable {
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.ClickCorporateGousingListingType();
    // System.out.println("Submitted Form");

  }
コード例 #30
0
  @Then("I drag the down payment slider all the way to the left$")
  public void DragDownPayementSliderLeft() throws Throwable {
    System.out.println("----right----");
    driver.manage().timeouts().implicitlyWait(1000, TimeUnit.SECONDS);
    detailPage = new DetailPage(driver);
    detailPage.DragdownpayementSliderLeftShift();
    // System.out.println("Submitted Form");

  }