public void ThenUserSearchResultsForPropertyAreSuccessfull() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("Search for a Property"); // Create an class and object to call the method PropertyOwner obj = new PropertyOwner(); obj.SearchAProperty(); // Screenshot String img = SaveScreenShotClass.SaveScreenshot(Driver.driver, "Searc Properties"); test.Log(LogStatus.Info, "Image example: " + img); // end test. (Reports) extent.EndTest(test); // calling Flush writes everything to the log file (Reports) extent.Flush(); //Close the broswer Global.Driver.driver.Close(); }
public void ThenUserSearchResultsForPropertyAreSuccessfull() { // Creates a toggle for the given test, adds all log events under it test = extent.StartTest("Search for a Property"); // Create an class and object to call the method PropertyOwner obj = new PropertyOwner(); obj.SearchAProperty(); //Close the broswer Global.Driver.driver.Close(); }