Methods of the Selenium wrapper
Method
Description
Example
NLWebDriver(Selenium webdriver,Name of the NeoLoad User Path, path to the NL project);
NLWebDriver is the constructor of the NeoLoad webdriver.
This constructor allows you to specify the project that is to be updated with the new/updated User Path.
var webDriver = new FirefoxDriver(NLWebDriverFactory.AddProxyCapabilitiesIfNecessary(new DesiredCapabilities()));string projectPath = "C:\\Users\\dregnier\\Documents\\NeoLoad Projects\\v5.3\\Sample_Project\\Sample_Project.nlp";NLWebDriver driver = NLWebDriverFactory.NewNLWebDriver(webDriver, "SeleniumUserPath", projectPath);NLWebDriver(Selenium webdriver,Name of the NeoLoad User Path);
Project path is optional.
If the project is not specified, the wrapper will use the currently opened project.
var webDriver = new FirefoxDriver(NLWebDriverFactory.AddProxyCapabilitiesIfNecessary(new DesiredCapabilities()));NLWebDriver driver = NLWebDriverFactory.NewNLWebDriver(webDriver, "SeleniumUserPath");setCustomName
This method will set a custom name of the next Entry that will be sent to the Data Exchange server.
driver.SetCustomName("custom entry name");
Home