Table of Contents

Class PortUtilities

Namespace
OpenQA.Selenium.Internal
Assembly
WebDriver.dll

Encapsulates methods for working with ports.

public static class PortUtilities
Inheritance
PortUtilities
Inherited Members

Methods

FindFreePort()

Finds a random, free port to be listened on.

public static int FindFreePort()

Returns

int

A random, free port to be listened on.