public void GivenClickOnViewIconForJobTitle() { ManageListings listings = new ManageListings(); string titleSearch = "Test Analyst"; listings.ClickView(titleSearch); }
//Passed, ServiceDetails page not function well public void ViewListings() { //Populate the Excel Sheet ExcelLib.PopulateInCollection(ExcelPath, "ManageListings"); string title = ExcelLib.ReadData(2, "Title"); //Search the service in Listings and click view var manageListingsInstance = new ManageListings(); manageListingsInstance.ClickManageListings(); manageListingsInstance.ClickView(title); //Verify if user is able to click view and view the service details successfully string expectedTitle = "Service Detail"; string actualTitle = Driver.Title; Assert.That(actualTitle, Is.EqualTo(expectedTitle), "Open Service Detail page failed"); }