Table of Contents

Class BrowserId

Namespace
CSF.Extensions.WebDriver.Identification
Assembly
CSF.Extensions.WebDriver.dll

A model which represents a combination of browser, OS platform and the browser version.

public sealed class BrowserId : IEquatable<BrowserId>
Inheritance
BrowserId
Implements
Inherited Members

Constructors

BrowserId(string, string, BrowserVersion)

Initialises a new instance of BrowserId.

public BrowserId(string name, string platform, BrowserVersion version)

Parameters

name string

The browser name

platform string

The browser platform

version BrowserVersion

The browser version

Exceptions

ArgumentException

If either name or platform is null or an empty string.

ArgumentNullException

If version is null.

Properties

Name

Gets the browser name.

public string Name { get; }

Property Value

string

Platform

Gets the operating system platform upon which the browser is running.

public string Platform { get; }

Property Value

string

Version

Gets a model which represents the browser's version.

public BrowserVersion Version { get; }

Property Value

BrowserVersion

Methods

Equals(BrowserId)

public bool Equals(BrowserId other)

Parameters

other BrowserId

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(BrowserId, object)

Gets a value indicating whether or not the browser ID equals the specified object.

public static bool operator ==(BrowserId id, object other)

Parameters

id BrowserId

A browser ID

other object

Another object

Returns

bool

true if the browser ID and the object are equal; false if not.

operator !=(BrowserId, object)

Gets a value indicating whether or not the browser ID is not equal to the specified object.

public static bool operator !=(BrowserId id, object other)

Parameters

id BrowserId

A browser ID

other object

Another object

Returns

bool

true if the browser ID and the object are not equal; false if they are.