public void CheckoutCartTestMethod() { try { test = extent.CreateTest("CheckoutCartTestMethod").Info("Checkout from cart Test Started"); Checkout checkout = new Checkout(driver); checkout.ChechOutCart(); string cartUrl = "https://www.bookswagon.com/viewshoppingcart.aspx"; Assert.AreEqual(cartUrl, driver.Url); test.Log(Status.Info, "Entered all the credentials"); test.Log(Status.Pass, "Test passed"); } catch (Exception exception) { test.Log(Status.Fail, exception.ToString()); throw; } }