public void ExecuteTest() { Console.WriteLine("1. Starting"); //login to application by creating an instance of Authentication class Authentication authentication = new Authentication(); Console.WriteLine("2. Authentication loaded"); AccountPage accountPage = authentication.SignIn("*****@*****.**", "@nuK1978"); Console.WriteLine("3. Sign In Done"); SearchResultsPage searchResults = accountPage.EnterSearchText("printed summer dress"); Console.WriteLine("4. Search Done"); CheckOut checkout = searchResults.AddToCart(); Console.WriteLine("5. Added to cart"); System.Threading.Thread.Sleep(5000); checkout.CompleteTransaction(); Console.WriteLine("6. Proceed to checkout"); IWebElement OrderConfirm = PropertiesCollection.driver.FindElement(By.XPath("//*[@id=\"center_column\"]/p[1]")); Console.WriteLine(OrderConfirm); Boolean Message = OrderConfirm.Text.Contains("Your order on My Store is complete"); Assert.IsTrue(Message); }