Skip to main content
Version: 26.3

Quick Reference: Eggplant Functional Functions

The following table lists common SenseTalk functions that you can use with Eggplant Functional (EPF) scripts.

FunctionReturns
ColorAtLocationThe color of the pixel at a given location (Default: RGB value)
ConnectionInfoA connection property list
EggPlantVersionThe version number of your copy of Eggplant Functional
EveryElementLocation and EveryImageLocationThe hot spot location of every occurrence of the given element or elements
EveryElementRectangle and EveryImageRectangleRectangle coordinates of every occurrence of the given element or elements
FoundImageInfoAn image property list for the last image found
FoundElementLocation and FoundImageLocationThe location of the last element found
FoundElementNumber and FoundImageNumberThe position of the last element found, within a series of given elements
GetOptionThe value of a given global property
GetOptionsThe values of all Run Option global properties or given global properties
ImageColorAtLocationThe color of the pixel at a given location within an image (Default: RGB value)
ElementFound and ImageFoundWhether a given element is found; True or False
ImageHotSpotThe location of the hot spot in the given image
ElementInfo and ImageInfoA property list for the given element
ElementLocation and ImageLocationThe hot spot or location of the first occurrence of the given element or elements
ElementRectangle and ImageRectangleThe rectangle coordinates of the first occurrence of the given element or elements
ImageSizeAn image width and height in pixels
AllConnectionInfoA list of connection property lists for every SUT in the Connection List
MouseLocationCoordinates of the current mouse cursor location
OpenSuitesA list of all suites available to the current script
ReadCharactersReturns a character from a character collection as a string or multiline string
ReadTableThe table data found within a given rectangle on the SUT
ReadTextUses OCR to read the text content found within a given rectangle on the SUT
RemoteClipboardContents of the SUT clipboard
RemoteMonitorCountReturns the number of monitors associated with the current RDP connection
RemoteMonitorRectangleReturns the size of the specified monitor
RemoteMonitorSizeReturns the rectangle of the specified monitor
RemoteScreenRectangleThe coordinates of a rectangle the size of the entire Viewer window
RemoteScreenSizeThe width and height of the Viewer window in pixels
RunningFromCommandLineWhether or not the current script run was called in a command line
ScriptResultsA results property list for every run of the given (or current) script
SuiteInfoA property list of information about the given suite (or current suite)

Deprecated Functions​

Functions in the following table are deprecated and no longer supported; if an updated command or method is available, it is noted in the description.

FunctionBehavior and Alternatives
ADBCallExecutes ADB calls to available Android devices and returns any output. Instead, use the equivalent ADBCallRemote function.
FoundImageNameReturns the name of the last image found. Instead, use the FoundElementInfo and FoundImageInfo Functions, which return the imageName or imagePath as a parameter.