using NeoLoadSelenium.neoload; using NeoLoadSelenium.neoload.wrapper; using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.IE; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Remote; using System; namespace TestProject.TestScripts.Tests { public class IntegrationDesignTest { NLWebDriver driver; string projectPath = "NeoLoad_Selenium_Intg.nlp"; [SetUp] public void Initialize() { Environment.SetEnvironmentVariable("nl.selenium.proxy.mode", "Design"); DesiredCapabilities desiredCapability = NLWebDriverFactory.AddProxyCapabilitiesIfNecessary(new DesiredCapabilities()); // BELOE PIECE OF CODE NOT WORKING. BECAUSE NOW InternetExplorerDriver ACCEPTS "OpenQA.Selenium.IE.InternetExplorerOptions". InternetExplorerDriver webDriver = new InternetExplorerDriver(desiredCapability); driver = NLWebDriverFactory.NewNLWebDriver(webDriver, "UserPath", projectPath); } [Test] public void OpenAppTest() { driver.StartTransaction("home"); driver.Url = "http://ushahidi.demo.neotys.com/"; driver.StopTransaction(); driver.StartTransaction("reports"); driver.FindElement(By.Id("mainmenu")).FindElements(By.TagName("a"))[1].Click(); driver.StopTransaction(); driver.StartTransaction("submit"); driver.FindElement(By.PartialLinkText("SUBMIT")).Click(); driver.StopTransaction(); } [TearDown] public void EndTest() { driver.Close(); driver.Quit(); System.Diagnostics.Debug.WriteLine("<<<<<< TEST COMPLETED >>>>>>>>>>>"); } } }