CaptureBitmap |
Saves a bitmap image of this object to a file. If you do not specify an absolute file name, the bitmap is saved to the default bitmap location on the machine that runs the Agent, which is %LOCALAPPDATA%/Silk/SilkTest/capturedBitmaps. The captured bitmap's pixels are stored in 32bit RGB order; when parsing the image the 4th byte (alpha channel) of every pixel must be ignored as it is used only for padding. In .NET, the constant System.Drawing.Imaging.PixelFormat.Format32bppRgb can be used for this purpose. (Inherited from TestObject) |
Click |
Clicks on the device at the specified coordinates. (Inherited from IMobileClickable) |
CloseApp |
Closes the app and releases the device, to make it available to other users. |
Drag |
Performs a drag operation between the two specified points. (Inherited from IMobileGestures) |
Exists |
Checks if any child object matching the locator exists for an object in the application under test. If the timeout parameter is passed the agent retries finding until the given timeout expires. If no timeout is specified and no object is found initially false is returned immediately. (Inherited from TestObject) |
Exists |
Checks if an object exists in the application under test. (Inherited from TestObject) |
Find |
Finds an object specified by an XPath locator. (Inherited from TestObject) |
FindAll |
Finds all objects specified by an XPath locator. (Inherited from TestObject) |
GenerateConnectionString |
Generates a connection string for this mobile device. |
GenerateLocator |
Returns a locator for this object. (Inherited from TestObject) |
GetChildren |
Returns the child objects of this object. (Inherited from TestObject) |
GetDynamicMethodList |
Returns a list of methods (including their signature) that can be dynamically invoked on this TestObject. (Inherited from TestObject) |
GetParent |
Looks up the parent of this object in the test application. (Inherited from TestObject) |
GetProperty |
Returns the value of the specified property. (Inherited from TestObject) |
GetPropertyList |
Returns a list of property names that can be retrieved for the given object. (Inherited from TestObject) |
GetRect |
Returns the size and position of this object. Per default the returned coordinates are relative to the parent window that contains this object. (Inherited from TestObject) |
HighlightObject |
Highlights this object. (Inherited from TestObject) |
ImageClick |
Clicks on the specified image asset. (Inherited from TestObject) |
ImageClickFile |
Clicks on the specified image. (Inherited from TestObject) |
ImageExists |
Returns whether the specified image asset exists. (Inherited from TestObject) |
ImageExistsFile |
Returns whether the specified image exists. (Inherited from TestObject) |
ImageRectangle |
Returns the object-relative rectangle of the specified image
asset. (Inherited from TestObject) |
ImageRectangleFile |
Returns the object-relative rectangle of the specified image. (Inherited from TestObject) |
Invoke |
Dynamically invokes a method on the test object. (Inherited from TestObject) |
InvokeMethods |
Dynamically invokes a sequence of methods starting at this TestObject. (Inherited from TestObject) |
LongClick |
LongClicks on the device at the specified coordinates. (Inherited from IMobileClickable) |
MultiTouch |
Performs a multi-touch operation with the given pointers. For every given pointer a swipe operation is executed at the same time. (Inherited from IMobileGestures) |
PinchIn |
Performs a two-pointer gesture, where each pointer moves toward the other, from the edges to the center of this object. For example to zoom out on an image. (Inherited from IMobileGestures) |
PinchOut |
Performs a two-pointer gesture, where each pointer moves opposite across the other, from the center out towards the edges of the this object. For example to zoom in on an image. (Inherited from IMobileGestures) |
PressBack |
Presses the back button. This method is not supported on iOS. |
PressDelete |
Presses the delete button. |
PressEnter |
Presses the enter button. |
PressHome |
Presses the home button. This method is not supported on iOS. |
PressKeyCode |
Presses a certain Android-specific key code. This method is not supported on iOS. |
PressRecentApps |
Presses the recent apps button. |
Rotate |
Simulates rotating the device screen. |
SetLocation |
Sets the geographic location of the device, this method only works on Android devices (physical or emulated) and iOS simulators. |
SetProperty |
Sets the value of the specified property. (Inherited from TestObject) |
Sleep |
Presses the power button if the screen is on. This method is not supported on iOS. |
Swipe |
Performs a swipe between the two specified points. (Inherited from IMobileGestures) |
SwipeDown |
Performs a down-swipe. (Inherited from IMobileGestures) |
SwipeLeft |
Performs a left-swipe. (Inherited from IMobileGestures) |
SwipeRight |
Performs a right-swipe. (Inherited from IMobileGestures) |
SwipeUp |
Performs a up-swipe. (Inherited from IMobileGestures) |
SwipeWithSegments |
Performs a swipe between the specified points. (Inherited from IMobileGestures) |
TextCapture |
Returns the text in this object's visible area. (Inherited from TestObject) |
TextClick |
Clicks in the center of the specified text. (Inherited from TestObject) |
TextExists |
Returns whether the specified text exists. (Inherited from TestObject) |
TextRectangle |
Returns the object-relative rectangle of the specified text. (Inherited from TestObject) |
TwoPointerMultiTouch |
Performs a multi-touch operation with two pointers. It executes two swipe operation at the same time. (Inherited from IMobileGestures) |
TypeKeys |
Sends a set of keystrokes to the object. (Inherited from IMobileKeyable) |
Verify |
Executes a verification on the given asset in the context of this
UI object. (Inherited from TestObject) |
WaitForChildDisappearance |
Waits until the child object specified by the 'locator' parameter does not exist or until the timeout is reached. If you don't explicitly pass a timeout using the optional timeout parameter, the timeout specified by the option OPT_WAIT_RESOLVE_OBJDEF will be used. An exception is thrown if the timeout is reached. (Inherited from TestObject) |
WaitForDisappearance |
Waits until the object does not exist or until the timeout is reached. If you don't explicitly pass a timeout using the optional timeout parameter, the timeout specified by the option OPT_WAIT_RESOLVE_OBJDEF will be used. An exception is thrown if the timeout is reached. (Inherited from TestObject) |
WaitForObject |
Waits for an object that matches the specified locator. If no object matches within an timeout an ObjectNotFoundException is thrown. The default timeout is 5 seconds and you can change the timeout by setting the value of the option OPT_WAIT_RESOLVE_OBJDEF. Use WaitForObject if the AUT takes a long time to display a specific object, for example when a transaction is processed before showing any results. By default, an action in the UI does not require a WaitForObject, because of the built-in synchronization. If you receive random timeout errors during normal script execution, consider increasing the default timeout instead of adding WaitForObject statements to your scripts. (Inherited from TestObject) |
WaitForProperty |
Waits until the property specified by the 'propertyName' parameter gets the value specified by the 'expectedValue' parameter or until the timeout is reached. If you don't explicitly pass a timeout using the optional timeout parameter, the timeout specified by the option OPT_WAIT_RESOLVE_OBJDEF will be used. An exception is thrown if the timeout is reached. (Inherited from TestObject) |
WakeUp |
Presses the power button if the screen is off. This method is not supported on iOS. |