Class BrowserDescription
The description of a Web Browser test object.
public class BrowserDescription : PropertiesDescription, IDescription, ICloneable
- Inheritance
-
BrowserDescription
- Implements
- Inherited Members
Constructors
BrowserDescription()
Creates a new instance of BrowserDescription.
public BrowserDescription()
Properties
Dictionary
For internal usage.
public IDictionary<string, object> Dictionary { get; }
Property Value
OpenTitle
The object's initial title when first opened.
public StringProperty OpenTitle { get; set; }
Property Value
OpenUrl
The URL from which the object is first opened.
public StringProperty OpenUrl { get; set; }
Property Value
Title
The browser's title.
public StringProperty Title { get; set; }
Property Value
Type
The type of the browser. One of BrowserType.
public BrowserType? Type { get; set; }
Property Value
Url
The browser's current URL.
public StringProperty Url { get; set; }
Property Value
Methods
FromDictionary(IDictionary<string, object>)
This method creates a new instance of BrowserDescription and initializes it with the given props dictionary.
public static BrowserDescription FromDictionary(IDictionary<string, object> props)
Parameters
propsIDictionary<string, object>a dictionary of properties to initialize the BrowserDescription with.
Returns
- BrowserDescription
a new instance of BrowserDescription initialized with the given props dictionary.
Get(string)
Returns the current value of a BrowserDescription capability.
public object Get(string capability)
Parameters
capabilitystringthe capability to return the stored value of.
Returns
- object
the current value of a BrowserDescription capability.
Set(string, object)
Sets a BrowserDescription capability to the given value.
public BrowserDescription Set(string capability, object value)
Parameters
capabilitystringthe name of the capability to set value for.
valueobjectthe new value of the capability.
Returns
- BrowserDescription
The updated description instance (builder pattern).