public void NavigateToSpecification() { test = LoadHtmlFile.CreateTestwrap("create a product for RSC product style "); test.Log(Status.Warning, "This is the final Log"); LoadHtmlFile.SetupReporting("D:\\Nunit_Workspace\\NUnitSamplec\\NUnitSample\\Reports\\SampleFile1.html"); test.Log(Status.Pass, MarkupHelper.CreateLabel("Manoj" + " Test Case PASSED", ExtentColor.Green)); driver.Url = PropertyReader.GetProperty(Property.ProductMenu_ID, Locators.Specification.Default); driver.Manage().Window.Maximize(); LoadHtmlFile.CreateTestwrap("New file for check"); PropertyReader.GetProperty(Property.BASEURL, Locators.Specification.Default); driver.FindElement(By.XPath(PropertyReader.GetProperty(Property.Product_Management, Locators.Specification.Default))).Click(); WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(10)); Thread.Sleep(1000); driver.FindElement(By.Id(PropertyReader.GetProperty(Property.Specifications, Locators.Specification.Default))).Click(); test.Info("Now i am in the test"); }
public void reportGeneration() { string reportname = "RSC product Spec Report"; LoadHtmlFile.SetupReporting(reportname); }
public void closebrowser() { LoadHtmlFile.GenerateReport(); // driver.Quit(); }