I have written a script in eclipse which invokes the firefox browsers and navigate to homepage. Im using automatic timer configuration. Going through documentation, it says All options except the driver instance are passed via command line arguments in java proxy configuration options.
How do I pass nl.data.exchange.url which is required option through command line, Does my script requires any changes.
Below is my script
package seleniumIntegration;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
import com.neotys.selenium.proxies.NLWebDriver;
import com.neotys.selenium.proxies.WebDriverProxy;
public class NL_Selenium_Intergration {
public static void main(String[] args) {
NLWebDriver driver = WebDriverProxy.newInstance(new FirefoxDriver());
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.navigate().to("https://http//www.online-calculator.com/");
}
}
No your script does not require any change. Only the driver instance need to be hard coded in the script, which is what you have already done.
You can pass the Data exchange URL using this syntax in command line:
-Dnl.data.exchange.url=http://localhost:7400/DataExchange/v1/Service.svc/
For more information, see documentation:
http://www.neotys.fr/documents/doc/neoload/latest/fr/html/#8271.htm#o8278