//Passed public void DeleteService() { //Populate the Excel Sheet ExcelLib.PopulateInCollection(ExcelPath, "ManageListings"); string title = ExcelLib.ReadData(2, "Title"); Console.WriteLine($"the title for deleting is {title}"); //Search service and Delete var managementListingsInstance = new ManageListings(); managementListingsInstance.ClickManageListings(); managementListingsInstance.ClickDelete(title); managementListingsInstance.ClickYes(); //Verify if the service has been deleted string expectedMsg = $"{title} has been deleted"; string actualMsg = Driver.FindElement(By.XPath("/html/body/div/div[@class='ns-box-inner']")).Text; Console.WriteLine("actual msg is " + actualMsg); Console.WriteLine("expected msg is " + expectedMsg); Assert.That(actualMsg, Is.EqualTo(expectedMsg), "Serice has not been deleted"); }