public void WhenIEnterGoogleInSearchBarAndClickOnGoogleSearchButton(string searchKeyword)
 {
     try
     {
         googleHomePage = new GoogleHomePage(SeleniumHelper.getDriver());
         googleHomePage.EnterSearchText(searchKeyword);
         _StepImageContext = new List <StepImageContext>();
         _StepImageContext = SeleniumHelper.AddScreenshotToContext(_StepImageContext, "EnterSearchCriteria.png", "User is entering search criteria");
         googleHomePage.ClickSearchButton();
         _StepImageContext = SeleniumHelper.AddScreenshotToContext(_StepImageContext, "ClickOnSearchButton.png", "User is clicking search button");
         ScenarioContext.Current.Add("StepImageContext", _StepImageContext);
     }
     catch (Exception ex)
     {
         //Hooks.testLog.Fail(ex);
         //throw ex;
         Hooks.LogErrorWithScreenshot(ex, _StepImageContext);
     }
 }
 public void WhenHitSearchButton()
 {
     ghPage.ClickSearchButton();
 }