WebElementPattern Class |
Namespace: SmartBear.TestLeft.TestObjects.Web
The WebElementPattern type exposes the following members.
Name | Description | |
---|---|---|
WebElementPattern |
Creates a new instance of the WebElementPattern class.
|
Name | Description | |
---|---|---|
accept |
The accept attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
action |
The action attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
alt |
The alt attribute of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
contentText |
The text the sought-for object contains (including the text of child elements). By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
controls |
The controls attribute value of the sought-for web element.
| |
data |
Applied to OBJECT elements. Specifies the data attribute value of the sought-for element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
download |
The download attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
Enabled |
Specifies whether the sought-for control is enabled (true) or disabled (false). Disabled controls are typically displayed in grey.
(Inherited from ControlPattern.) | |
enctype |
The enctype attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
form |
The form attribute value of the sought-for web element (for example, of the sought-for select element). By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
hostname |
The hostname property value of the sought-for a web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
href |
The href attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
htmlFor |
The for attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
idStr |
The id attribute of the sought-for object with special characters replaced with underscores. Check the property value in the TestLeft UI Spy panel before writing code.
| |
length |
Applied to FORM elements. Specifies the length property value of the sought-for form.
| |
method |
The method property value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
multiple |
The multiple property value of the sought-for web element.
| |
ObjectIdentifier |
The string TestLeft uses to identify the sought-for web element: the ID or name attribute values, the file name for IMGs and so on. Check the property value in the TestLeft UI Spy panel before writing code. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
ObjectLabel |
The label or text of the sought-for object. Check this value in the TestLeft UI Spy panel before setting it in your test. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
ObjectType |
Specifies the type of the sought-for web element. This property reflects the role of the element on the page: Link, Cell, CheckBox and so on. Check the property value in the TestLeft UI Spy panel before writing code.
| |
pathname |
The pathname property value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
placeholder |
The placeholder attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
readOnly |
Specifies whether the sought-for web object has the readonly attribute.
| |
role |
The role attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
size |
The size attribute value of the sought-for web element.
| |
src |
The src attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
tagName |
The tag name of the sought-for web element.
| |
target |
The target attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
title |
The title attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
type |
The type attribute value of the sought-for web element. By default, TestLeft searches for the exact match. To mark variable parts, use wildcards (* or ?) or specify regular expressions (regexp:...).
| |
Visible |
Specifies whether the sought-for controls are visible (a control may be out of the screen, but still visible).
(Inherited from ControlPattern.) |
Name | Description | |
---|---|---|
Add |
Adds a custom property to the search pattern and returns the pattern object.
You can explore your tested application in the TestLeft UI Spy to choose the appropriate property and value.
| |
DoAddCustomItem |
Adds a custom property to the search pattern.
(Inherited from SearchPatternBase.) | |
DoAddOwnItems |
Overrides the DoAddOwnItems(SearchPatternBaseSearchPatternItems) method.
(Overrides ControlPatternDoAddOwnItems(SearchPatternBaseSearchPatternItems).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPatternItems |
Implements GetPatternItems.
(Inherited from SearchPatternBase.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns a user-friendly string representation of properties and values used in the search pattern.
(Inherited from SearchPatternBase.) |