Table of Contents

Class BrowserDescription

Namespace
HP.LFT.SDK.Web
Assembly
HP.LFT.SDK.dll

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

IDictionary<string, object>

OpenTitle

The object's initial title when first opened.

public StringProperty OpenTitle { get; set; }

Property Value

StringProperty

OpenUrl

The URL from which the object is first opened.

public StringProperty OpenUrl { get; set; }

Property Value

StringProperty

Title

The browser's title.

public StringProperty Title { get; set; }

Property Value

StringProperty

Type

The type of the browser. One of BrowserType.

public BrowserType? Type { get; set; }

Property Value

BrowserType?

Url

The browser's current URL.

public StringProperty Url { get; set; }

Property Value

StringProperty

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

props IDictionary<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

capability string

the 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

capability string

the name of the capability to set value for.

value object

the new value of the capability.

Returns

BrowserDescription

The updated description instance (builder pattern).