public void helloWorldTest()
{
DataSet helloworld = new DataSet();
helloworld.ReadXml(ConfigurationSettings.AppSettings["XmlPath"].ToString());
sceenshotpath=helloworld.Tables[0].Rows[0].ItemArray[10].ToString();
baseUrl = helloworld.Tables[1].Rows[0].ItemArray[1].ToString() + ":" + "//" + helloworld.Tables[1].Rows[0].ItemArray[2].ToString() + ":" + helloworld.Tables[1].Rows[0].ItemArray[3].ToString() + "/" + helloworld.Tables[1].Rows[0].ItemArray[0].ToString();
Directory.CreateDirectory(helloworld.Tables[0].Rows[0].ItemArray[9].ToString());
try
{
//Opens Phresco Home Page.
driver.Navigate().GoToUrl(baseUrl);
//Click on site actions and go to edit page.
driver.FindElement(By.XPath(helloworld.Tables[0].Rows[0].ItemArray[4].ToString())).Click();
driver.FindElement(By.XPath(helloworld.Tables[0].Rows[0].ItemArray[5].ToString())).Click();
Thread.Sleep(Convert.ToInt32(helloworld.Tables[0].Rows[0].ItemArray[3].ToString()));
//Close the hello world web part.
driver.FindElement(By.XPath(helloworld.Tables[0].Rows[0].ItemArray[6].ToString())).Click();
Thread.Sleep(Convert.ToInt32(helloworld.Tables[0].Rows[0].ItemArray[3].ToString()));
driver.Navigate().Refresh();
driver.Navigate().GoToUrl(baseUrl);
}
catch (Exception e)
{
TakeScreenshot(driver, helloworld.Tables[0].Rows[0].ItemArray[10].ToString());
throw e;
}
}
}