Interface IAIObject
An object identified using Artificial intelligence.
public interface IAIObject : ITestObject, ITestObjectDescriber
- Inherited Members
- Extension Methods
Properties
Value
The value is based on the following object properties: text for text objects, state for toggleable controls, and value for input fields, text boxes, and combo boxes.
string Value { get; }
Property Value
Methods
Click()
Clicks in the middle of the AI object.
void Click()
DoubleClick()
Double-clicks in the middle of the AI object. This method is not supported for mobile applications.
void DoubleClick()
Hover()
Holds the cursor over an AI object. This method is not supported for mobile applications.
void Hover()
Hover(int)
Holds the cursor over an AI object for a given duration. This method is not supported for mobile applications.
void Hover(int duration)
Parameters
durationintThe duration to hover.
LongClick()
Long-clicks in the middle of the AI object. This method is currently not supported for mobile applications. Will be implemented in the future.
void LongClick()
RightClick()
Right-clicks in the middle of the AI object. This method is not supported for mobile applications.
void RightClick()
Search(string)
Types the specified text into the search box and clicks the search icon. This method is supported only for the 'search' AI class.
void Search(string text)
Parameters
textstringThe text to search for.
Select(string)
Selects an item from a combo box.
void Select(string element)
Parameters
elementstringThe item to select.
Select(string, AIComboBoxSettings)
Selects an item from a combo box, using the specified settings. After the select operation is finished the settings will be reverted to default.
void Select(string element, AIComboBoxSettings settings)
Parameters
elementstringThe item to select.
settingsAIComboBoxSettingsThe settings to use for the select.
SendKeys(string)
Types the specified string into the AI object.
void SendKeys(string text)
Parameters
textstringThe string to type in the AI object.
SendSecureKeys(string)
Types the specified encoded string into the AI object.
void SendSecureKeys(string encodedText)
Parameters
encodedTextstringThe encoded text to type in the AI object.
SetState(ToggleState)
Sets the state of a toggleable AI control. The toggleable AI controls are: Check Box, Toggle Button and Radio Button
void SetState(ToggleState state)
Parameters
stateToggleStateThe state to set.
SetText(string)
This method is relevant for AIObjects that represent text boxes, input controls, and combo boxes. This method is not supported for mobile applications.
void SetText(string text)
Parameters
textstringThe input to set.