Perfecto extensions
Perfecto provides support for extended RemoteWebDriver commands. You can use these commands as extensions to the existing API. For details on the commands, see the function categories in this section. For a description of code samples that show how to execute Perfecto extensions, see Execute proprietary functions.
Network
Command | Description |
---|---|
Retrieves the network settings specified by the Property parameter, and can insert its value into a defined variable. |
|
Sets the network settings. |
Services
Command | Description |
---|---|
Generates an external voice call recording to the selected destination. |
|
Sends an email message to the selected destination. |
|
Sends an SMS message to the selected destination. |
Visual Analysis
Command | Description |
---|---|
Identifies a button, based on an image, and clicks on it. |
|
Identifies a button, based on a text label, and clicks on it. |
|
Retrieve the value of an edit field into a variable. |
|
Set a text value into a form input field. |
|
Identifies an edit field, based on a text label, and retrieves its value. |
|
Identifies an edit field, based on a text label, and inserts the specified text in the value parameter into the field. |
|
Validate image appearance on the device. |
|
Validate appearance of expected text on the device. |
|
Finds image on the device screen. |
|
Find an image on the device screen and click on it. |
|
Finds text (needle) on the device screen (haystack), and stores the coordinates for future commands. |
|
Finds text (needle) on the device screen (haystack), and clicks it to select the item. |
|
Returns the text that appears on the screen of the device without selecting it. |
User Actions
Command | Description |
---|---|
Perform drag action on a touch screen |
|
Performs the selected multi-touch operation, pinch and zoom. |
|
Perform a swipe operation on the device. |
|
Perform a touch operation on the device. |
|
Performs a trackball roll (in BB devices). |
Applications
Command | Description |
---|---|
Close an application on the device. |
|
Moves the application to the background for a specified duration. |
|
Brings the application to its initial installation state. |
|
Install an application from the repository on the device. |
|
Start an application on the device. |
|
Uninstall all applications from the device. |
|
Uninstall an application from the device. |
|
Start an activity (application component) on the device. |
|
Verifies the Android package or activity (application component) has started on the device. |
|
Opens the notifications shade. |
Browser
Command | Description |
---|---|
Clears the browser content. |
|
Executes a JavaScript script on the device browser application. |
|
Opens the browser. |
|
Verifies the browser application is running and page is loaded. |
|
Directs the browser page back and forward. |
Device
Command | Description |
---|---|
Retrieve a log file from the device |
|
Set the rotation position of the device |
|
Control the virtual keyboard display |
|
Retrieves the specified device property value into a defined variable. |
|
Brings the device to its idle / home screen. |
|
Reboots the device, and returns it unlocked. |
|
Recovers an unresponsive connected device, such as, with an interrupted video, black screen, or touch failure. |
|
Locks the device screen for a specified duration (in seconds). |
|
Starts recording the audio output from the device. |
|
Completes the recording and saves the audio file to the media storage server. |
|
Sends text String to the device's Voice Assistant (for example, Siri) and allows the assistant to complete the action. |
Events
Command | Description |
---|---|
Plays an audio file (mp3/wav) into the device audio-in. |
|
Sends a key event to the device, using key codes and metastates. |
|
Clicks a single or a sequence of device keyboard keys. |
Files
Command | Description |
---|---|
Delete the specified file from the device. |
|
Copy a file from the device to the repository. |
|
Upload a file from the repository to the device. |
|
For Web tests, provides a link to files on the remote machine on which the test ran. |
|
For Web tests, provides a way to upload a file from the Perfecto repository to the desktop web instance under test. |
Location
Command | Description |
---|---|
Gets the device location. |
|
Resets the device location. |
|
Sets the device location. |
|
Injects a DetectedActivity object that identifies that an activity of the device has been detected with a "level of confidence" that the user is performing this activity. |
Network Virtualization
Command | Description |
---|---|
Starts network virtualization for the device with the specified conditions. |
|
Stops network virtualization for the device and save PCAP file to the repository. |
|
Updates network virtualization for the device with the specified conditions. |
Timer
Command | Description |
---|---|
Begins to measure time, with the specified timer ID, until the mobile:timer:stop is invoked. |
|
Stops time measurement of specified timer. |
|
Retrieves the specified timer value. |
|
Adds a timer report to the test. The measured timer result is reported from the test into the generated Single Test Report. |
Vitals
Command | Description |
---|---|
Start collecting monitor data |
|
Stop collecting monitor data |
Audio
Command | Description |
---|---|
Convert audio to text by applying powerful neural network models. |
|
Accepts an audio file that may be recorded from a device and creates a text file that contains the textual translation of the audio file. |
|
Receives an audio file, may have been recorded from a device, uses the parameters to trim off any silence from the beginning or end of the audio. |
|
Plays an audio file into the device audio-in. Supported file types: MP3 and WAV. |
|
Starts recording the audio output from the device and creates a WAV file. |
|
Stops recording the audio output from the device, closes the file, and stores in the media storage server at the URL declared at the start of audio recording. |
|
Accepts either a text file or text string and returns an audio file. |
|
Sends text String to the device's Voice Assistant (Siri) and allows the assistant to complete the action. |
Also in this section