public void LogoutTestMethod() { try { test = extent.CreateTest("PlaceOrderTestMethod").Info("Place order Test Started"); Logout logout = new Logout(driver); logout.LogoutBookswagon(); test.Log(Status.Pass, "Logout from Bookswagon"); } catch (Exception exception) { test.Log(Status.Fail, exception.ToString()); } }