Open topic with navigation

IWebTestObject Interface
A generic Web test object used only for implementation. Do not use to describe a concrete web test object.

C# Syntax

    public interface IWebTestObject : HP.LFT.SDK.ILocationInfoProvider, HP.LFT.SDK.ISupportsNativeObject, HP.LFT.SDK.ITestObjectDescriber, IWebDescriber

Public Properties

| Name | Description
--- | --- | ---
| AbsoluteLocation | This object's coordinates relative to the screen (in pixels). 0,0 is the top-left corner of the (primary) monitor. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
| Attributes | Returns a copy of the collection of attributes that is attached to the element for instance 'id','class',etc.
| ClassName | The object's CSS class.
| Id | The object's HTML identifier.
| InnerHTML | The HTML code contained between the object's start and end tags.
| InnerText | The text contained between the object's start and end tags.
| IsVisible | Indicates whether the current element is visible. (Inherited from HP.LFT.SDK.IVisibleProvider)
| Location | This object's coordinates relative to the parent window in pixels. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
| Name | The object's name property.
| NativeObject | Returns the native application object that is represented by this test object instance, enabling you to access the native properties and methods provided by that object. (Inherited from HP.LFT.SDK.ISupportsNativeObject)
| OuterHTML | The object's HTML code and its content.
| OuterText | The object's text.
| Size | This object's size in pixels. (Inherited from HP.LFT.SDK.ILocationInfoProvider)
| Styles | Returns the element's computed styles as a dictionary with the name of the style as the key.
| TagName | The object's HTML tag.
| Title | The element's title attribute.

Top
Public Methods

| Name | Description
--- | --- | ---
| Describe | Overloaded. Describes a child test object.
| GetAttribute | Returns the value of a single attribute.
| GetComputedStyle | Returns the value of a single style.

Top