WebElementPatternObjectLabel Property |
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:...).
Namespace:
SmartBear.TestLeft.TestObjects.Web
Assembly:
SmartBear.TestLeft (in SmartBear.TestLeft.dll) Version: 14.70.237.11 (14.70.237.11)
Syntax public string ObjectLabel { get; set; }
Public Property ObjectLabel As String
Get
Set
Dim instance As WebElementPattern
Dim value As String
value = instance.ObjectLabel
instance.ObjectLabel = value
public:
property String^ ObjectLabel {
String^ get ();
void set (String^ value);
}
Property Value
Type:
StringRemarks
The property value depends on the web element type:
Element | Property Value |
---|
Button objects | The button's caption. |
Fieldset objects | The text of the child Legend object. |
ASP.NET controls and Sencha ExtJS objects | The object's native property that specifies the label or placeholder text. |
Other web elements | The label element associated with the sought-for element. |
See Also