Example usage for org.openqa.selenium.firefox FirefoxProfile PORT_PREFERENCE

List of usage examples for org.openqa.selenium.firefox FirefoxProfile PORT_PREFERENCE

Introduction

In this page you can find the example usage for org.openqa.selenium.firefox FirefoxProfile PORT_PREFERENCE.

Prototype

String PORT_PREFERENCE

To view the source code for org.openqa.selenium.firefox FirefoxProfile PORT_PREFERENCE.

Click Source Link

Usage

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;
}