HtmlControlGetValueT Method (String, Boolean)

Progress Software Corporation - Testing Framework 2018.1 Automation Infrastructure
Get a property value (e.g. control.border or control.style.backgroundColor) with ability to specify wrappedJSObject's in Firefox.

Namespace:  ArtOfTest.WebAii.Controls.HtmlControls
Assembly:  ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax

public virtual T GetValue<T>(
	string propertyName,
	bool isJsWrappedObject
)

Parameters

propertyName
Type: SystemString
The property name.
isJsWrappedObject
Type: SystemBoolean
Only applies to Firefox browser. Set to true to indicate this HtmlControl is a wrappedJSObject.

Type Parameters

T
The type of the property.

Return Value

Type: T
The value of the property.
Remarks

The property is retrieved by executing Javascript on the client side using the specified property name as the Javascript function.
Remarks

See https://developer.mozilla.org/en/wrappedJSObject for more information about wrappedJSObject.
Examples

string s = myControl.GetValue<string>("style.backgroundColor", true)
See Also

Reference