@Given("^I am on a For Sale details page that has the informa widget$")
 public void NavigateToSaledetailPageInformaWidget() throws Throwable {
   // driver.get("http://homes.com");SaledetailPageInformaWidget
   RequestPageMRH = new requestPageMRH(driver);
   RequestPageMRH.SaledetailPageInformaWidget();
   System.out.println("Mortage Executed navigation");
 }
  @And("^I click the get grequalified button from the Mortgage Request Connect page$")
  public void PrequalifiedButton() throws Throwable {

    // detailPage= new DetailPage(driver);
    MortgageRequestConnect = new requestPageMRH(driver);
    MortgageRequestConnect.PrequalifiedButtonMortagePage();
  }
 @Given("^I am on a For Sale details page that has the bankrate widget$")
 public void NavigateToSaleDetailBankRateWidget() throws Throwable {
   // driver.get("http://homes.com");
   RequestPageMRH = new requestPageMRH(driver);
   RequestPageMRH.MortageSalePage();
   System.out.println("Mortage Executed navigation");
 }
 /////////////////////////////////// Mortgage Pages URL /////////////////////////////////////
 // private static final String Value = null;
 @Given("^I am on the Mortgage Request Connect page$")
 public void NavigateToHomePage1() throws Throwable {
   // driver.get("http://homes.com");
   RequestPageMRH = new requestPageMRH(driver);
   RequestPageMRH.MortageRequestConnectPage();
   System.out.println("Mortage Executed navigation");
 }
  @And("^I select \"([^\"]*)\" from the \"([^\"]*)\" dropdown in the request page$")
  public void StateDrop(String Value, String Target) {

    MortgageRequest = new requestPageMRH(driver);
    MortgageRequest.SelectValueFromTargetDropDown(Value, Target);
    System.out.println("Selected " + Value + " from the " + Target + " dropdown");
  }
 @And("^I enter \"([^\"]*)\" in the \"([^\"]*)\" field on the Home Value Estimate form$")
 public void RequestHomeEstimateAddress(String Value, String Target) throws Throwable {
   System.out.println("Entered : " + Value + " in the " + Target + " field");
   MortgageRequest = new requestPageMRH(driver);
   MortgageRequest.EnterValueInTargetField(Value, Target);
   System.out.println("Populated " + Target + " Field");
 }
 @Given("^I am on the Request Home Estimate page$")
 public void NavigateToRequestHomeEstimate() throws Throwable {
   // driver.get("http://homes.com");
   RequestPageMRH = new requestPageMRH(driver);
   RequestPageMRH.MortageRequestHomeEstimate();
   // Thread.sleep(500000);
   System.out.println("Mortage Executed navigation");
 }
  @And("^I click the Submit Request button from the Refinance Request Page$")
  public void ClickSubmitRequest() throws Throwable {

    // detailPage= new DetailPage(driver);
    RequestPageMRH = new requestPageMRH(driver);
    RequestPageMRH.ClickSubmitRequestonRefiRequest();
    // return new DetailPage(driver);
  }
  @When("^I enter \"([^\"]*)\" in the \"([^\"]*)\" field on the Mortgage Request page$")
  public void PopulateLoanAmount(String Value, String Target) throws Throwable {

    // detailPage= new DetailPage(driver);
    RequestPageMRH = new requestPageMRH(driver);
    RequestPageMRH.EnterValueInTargetField(Value, Target);
    System.out.println("Populated " + Target + " Field with: " + Value);
  }
 @And("^I click the submitCMARequestFormButton$")
 public void submitCMARequestFormButton() throws Throwable {
   RequestPageMRH = new requestPageMRH(driver);
   RequestPageMRH.submitCMARequestForm();
 }