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
stringThe browser name
platform
stringThe browser platform
version
BrowserVersionThe browser version
Exceptions
- ArgumentException
If either
name
orplatform
is null or an empty string.- ArgumentNullException
If
version
is null.
Properties
Name
Gets the browser name.
public string Name { get; }
Property Value
Platform
Gets the operating system platform upon which the browser is running.
public string Platform { get; }
Property Value
Version
Gets a model which represents the browser's version.
public BrowserVersion Version { get; }
Property Value
Methods
Equals(BrowserId)
public bool Equals(BrowserId other)
Parameters
other
BrowserId
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
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
Returns
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)