List of usage examples for org.openqa.selenium.firefox FirefoxProfile PORT_PREFERENCE
String PORT_PREFERENCE
To view the source code for org.openqa.selenium.firefox FirefoxProfile PORT_PREFERENCE.
Click Source Link
From source file:com.cognifide.aet.worker.drivers.FirefoxProfileBuilder.java
License:Apache License
FirefoxProfileBuilder withRandomPort() { firefoxProfile.setPreference(FirefoxProfile.PORT_PREFERENCE, new Random().nextInt(64510) + 1024); return this; }