Table of Contents

Class Platform

Namespace
OpenQA.Selenium
Assembly
WebDriver.dll

Represents the platform on which tests are to be run.

public class Platform
Inheritance
Platform
Inherited Members

Constructors

Platform(PlatformType)

Initializes a new instance of the Platform class for a specific platform type.

public Platform(PlatformType typeValue)

Parameters

typeValue PlatformType

The platform type.

Properties

CurrentPlatform

Gets the current platform.

public static Platform CurrentPlatform { get; }

Property Value

Platform

MajorVersion

Gets the major version of the platform operating system.

public int MajorVersion { get; }

Property Value

int

MinorVersion

Gets the major version of the platform operating system.

public int MinorVersion { get; }

Property Value

int

PlatformType

Gets the type of the platform.

public PlatformType PlatformType { get; }

Property Value

PlatformType

ProtocolPlatformType

Gets the value of the platform type for transmission using the JSON Wire Protocol.

public string ProtocolPlatformType { get; }

Property Value

string

Methods

IsPlatformType(PlatformType)

Compares the platform to the specified type.

public bool IsPlatformType(PlatformType compareTo)

Parameters

compareTo PlatformType

A PlatformType value to compare to.

Returns

bool

true if the platforms match; otherwise false.

ToString()

Returns the string value for this platform type.

public override string ToString()

Returns

string

The string value for this platform type.