Table of Contents

Class BrowserDescription

The description of a Web Browser test object.

Inheritance
BrowserDescription
Namespace: HP.LFT.SDK.Web
Assembly: HP.LFT.SDK.dll
Syntax
public class BrowserDescription : PropertiesDescription, IDescription, ICloneable

Constructors

BrowserDescription()

Creates a new instance of BrowserDescription.

Declaration
public BrowserDescription()

Properties

Dictionary

For internal usage.

Declaration
public IDictionary<string, object> Dictionary { get; }
Property Value
Type Description
IDictionary<string, object>

OpenTitle

The object's initial title when first opened.

Declaration
public StringProperty OpenTitle { get; set; }
Property Value
Type Description
StringProperty

OpenUrl

The URL from which the object is first opened.

Declaration
public StringProperty OpenUrl { get; set; }
Property Value
Type Description
StringProperty

Title

The browser's title.

Declaration
public StringProperty Title { get; set; }
Property Value
Type Description
StringProperty

Type

The type of the browser. One of BrowserType.

Declaration
public BrowserType? Type { get; set; }
Property Value
Type Description
BrowserType?

Url

The browser's current URL.

Declaration
public StringProperty Url { get; set; }
Property Value
Type Description
StringProperty

Methods

FromDictionary(IDictionary<string, object>)

This method creates a new instance of BrowserDescription and initializes it with the given props dictionary.

Declaration
public static BrowserDescription FromDictionary(IDictionary<string, object> props)
Parameters
Type Name Description
IDictionary<string, object> props

a dictionary of properties to initialize the BrowserDescription with.

Returns
Type Description
BrowserDescription

a new instance of BrowserDescription initialized with the given props dictionary.

Get(string)

Returns the current value of a BrowserDescription capability.

Declaration
public object Get(string capability)
Parameters
Type Name Description
string capability

the capability to return the stored value of.

Returns
Type Description
object

the current value of a BrowserDescription capability.

Set(string, object)

Sets a BrowserDescription capability to the given value.

Declaration
public BrowserDescription Set(string capability, object value)
Parameters
Type Name Description
string capability

the name of the capability to set value for.

object value

the new value of the capability.

Returns
Type Description
BrowserDescription

The updated description instance (builder pattern).

Implements

IDescription
ICloneable