Snaky Android Test --- If you want to be able to try out the API using the Execute or TRY button from this page - an android device should be connected using adb
- the server should have been started using ./culebratester2 start-server
then you will be able to invoke the API and see the responses.
This Python package is automatically generated by the Swagger Codegen project:
- API version: 2.0.73
- Package version: 2.0.73
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
Python 2.7 and 3.4+
Just run
pip install culebratester_client --upgrade
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import culebratester_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import culebratester_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import culebratester_client
from culebratester_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
pkg = 'pkg_example' # str | The package name
try:
# Completely stop the given application package.
api_response = api_instance.am_force_stop_get(pkg)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->am_force_stop_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets the current timeout used for waiting for the user interface to go into an idle state.
api_response = api_instance.configurator_get_wait_for_idle_timeout_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->configurator_get_wait_for_idle_timeout_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
timeout = 789 # int | Timeout value in milliseconds
try:
# Sets the timeout for waiting for the user interface to go into an idle state before starting a uiautomator action.
api_response = api_instance.configurator_set_wait_for_idle_timeout_get(timeout)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->configurator_set_wait_for_idle_timeout_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
api = 'api_example' # str | Specify the API help is about
try:
# Gets help
api_response = api_instance.culebra_help_api_get(api)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->culebra_help_api_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets information about this app.
api_response = api_instance.culebra_info_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->culebra_info_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Quits culebra server.
api_response = api_instance.culebra_quit_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->culebra_quit_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets display real size.
api_response = api_instance.device_display_real_size_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->device_display_real_size_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
service = NULL # object | dumps only service SERVICE
arg1 = NULL # object | argument 1 for dumpsys service command (optional)
arg2 = NULL # object | argument 2 for dumpsys service command (optional)
arg3 = NULL # object | argument 3 for dumpsys service command (optional)
try:
api_instance.device_dumpsys_get(service, arg1=arg1, arg2=arg2, arg3=arg3)
except ApiException as e:
print("Exception when calling DefaultApi->device_dumpsys_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
api_response = api_instance.device_locale_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->device_locale_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Locale() # Locale | The locale
try:
api_response = api_instance.device_locale_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->device_locale_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
timeout = 789 # int | The timeout in ms (optional)
try:
# Waits for a new Toast.
api_response = api_instance.device_wait_for_new_toast_get(timeout=timeout)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->device_wait_for_new_toast_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Clears all the objects in store.
api_response = api_instance.object_store_clear_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->object_store_clear_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Lists the objects in store.
api_response = api_instance.object_store_list_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->object_store_list_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Removes an object.
api_response = api_instance.object_store_remove_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->object_store_remove_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
pkg = 'pkg_example' # str | the package name
cls = 'cls_example' # str | the class name
uri = 'uri_example' # str | the URI (i. e. https://example.com) (optional)
try:
# Starts an Activity.
api_response = api_instance.target_context_start_activity_get(pkg, cls, uri=uri)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->target_context_start_activity_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Clears the text from the last UI traversal event.
api_response = api_instance.ui_device_clear_last_traversed_text_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_clear_last_traversed_text_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
x = 56 # int | x coordinate
y = 56 # int | y coordinate
try:
# Clicks at the specified location.
api_response = api_instance.ui_device_click_get(x, y)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_click_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.ClickBody() # ClickBody |
try:
# Clicks at the specified locations.
api_response = api_instance.ui_device_click_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_click_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets the current package name.
api_response = api_instance.ui_device_current_package_name_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_current_package_name_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets the display height.
api_response = api_instance.ui_device_display_height_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_display_height_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets the display rotation.
api_response = api_instance.ui_device_display_rotation_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_display_rotation_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets the display size in DP.
api_response = api_instance.ui_device_display_size_dp_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_display_size_dp_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Gets the display width.
api_response = api_instance.ui_device_display_width_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_display_width_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
start_x = 56 # int | from x
start_y = 56 # int | from y
end_x = 56 # int | to x
end_y = 56 # int | end y
steps = 56 # int | is the number of move steps sent to the system
try:
# Performs a swipe from one coordinate to another coordinate.
api_response = api_instance.ui_device_drag_get(start_x, start_y, end_x, end_y, steps)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_drag_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
format = 'format_example' # str | the output format (optional)
try:
# Dumps the window hierarchy.
api_response = api_instance.ui_device_dump_window_hierarchy_get(format=format)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_dump_window_hierarchy_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
resource_id = 'resource_id_example' # str | the resource id (optional)
ui_selector = 'ui_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - clazz or className - clickable - depth - desc - index - instance - package - parentIndex - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
by_selector = 'by_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - checkable - clazz - clickable - depth - desc - package - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
try:
# Finds an object.
api_response = api_instance.ui_device_find_object_get(resource_id=resource_id, ui_selector=ui_selector, by_selector=by_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_find_object_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Selector() # Selector | Selector
try:
# Finds an object.
api_response = api_instance.ui_device_find_object_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_find_object_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
by_selector = 'by_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - checkable - clazz - clickable - depth - desc - package - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
try:
# Finds *all* objects that match the selector criteria.
api_response = api_instance.ui_device_find_objects_get(by_selector=by_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_find_objects_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Selector() # Selector | Selector
try:
# Finds *all* objects.
api_response = api_instance.ui_device_find_objects_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_find_objects_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Disables the sensors and freezes the device rotation at its current rotation state.
api_response = api_instance.ui_device_freeze_rotation_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_freeze_rotation_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
by_selector = 'by_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - checkable - clazz - clickable - depth - desc - package - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created.
try:
# Returns whether there is a match for the given selector criteria.
api_response = api_instance.ui_device_has_object_get(by_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_has_object_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Selector() # Selector | Selector
try:
# Returns whether there is a match for the given selector criteria.
api_response = api_instance.ui_device_has_object_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_has_object_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Check if the device is in its natural orientation.
api_response = api_instance.ui_device_is_natural_orientation_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_is_natural_orientation_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Checks the power manager if the screen is ON.
api_response = api_instance.ui_device_is_screen_on_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_is_screen_on_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Retrieves the text from the last UI traversal event received.
api_response = api_instance.ui_device_last_traversed_text_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_last_traversed_text_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
x = 56 # int | The x coordinate
y = 56 # int | The y coordinate
try:
# Gets a pixel from device screen.
api_response = api_instance.ui_device_pixel_get(x, y)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_pixel_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the BACK button.
api_response = api_instance.ui_device_press_back_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_back_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the CENTER button.
api_response = api_instance.ui_device_press_d_pad_center_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_d_pad_center_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the DOWN button.
api_response = api_instance.ui_device_press_d_pad_down_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_d_pad_down_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the LEFT button.
api_response = api_instance.ui_device_press_d_pad_left_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_d_pad_left_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the RIGHT button.
api_response = api_instance.ui_device_press_d_pad_right_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_d_pad_right_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the UP button.
api_response = api_instance.ui_device_press_d_pad_up_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_d_pad_up_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the DELETE key.
api_response = api_instance.ui_device_press_delete_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_delete_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the ENTER key.
api_response = api_instance.ui_device_press_enter_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_enter_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the HOME button.
api_response = api_instance.ui_device_press_home_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_home_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
key_code = 56 # int | the key code of the event.
meta_state = 56 # int | an integer in which each bit set to 1 represents a pressed meta key (optional)
try:
# Simulates a short press using a key code.
api_response = api_instance.ui_device_press_key_code_get(key_code, meta_state=meta_state)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_key_code_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Simulates a short press on the Recent Apps button.
api_response = api_instance.ui_device_press_recent_apps_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_press_recent_apps_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Retrieves the product name of the device.
api_response = api_instance.ui_device_product_name_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_product_name_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
scale = 3.4 # float | The scale of the screenshot (i.e. 0.5) (optional)
quality = 56 # int | The quality of the screenshot (i.e. 100) (optional)
try:
# Gets the device screenshot.
api_response = api_instance.ui_device_screenshot_get(scale=scale, quality=quality)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_screenshot_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
start_x = 56 # int | from x
start_y = 56 # int | from y
end_x = 56 # int | to x
end_y = 56 # int | end y
steps = 56 # int | is the number of move steps sent to the system
try:
# Performs a swipe.
api_response = api_instance.ui_device_swipe_get(start_x, start_y, end_x, end_y, steps)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_swipe_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.SwipeBody() # SwipeBody |
try:
# Performs a swipe between points in the Point array.
api_response = api_instance.ui_device_swipe_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_swipe_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Re-enables the sensors and un-freezes the device rotation allowing its contents to rotate with the device physical rotation
api_response = api_instance.ui_device_unfreeze_rotation_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_unfreeze_rotation_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
timeout = 10000 # int | in milliseconds (optional) (default to 10000)
try:
# Waits for the current application to idle.
api_response = api_instance.ui_device_wait_for_idle_get(timeout=timeout)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_wait_for_idle_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
timeout = 789 # int | in milliseconds
package_name = 'package_name_example' # str | the specified window package name (can be null or not present). If null, a window update from any front-end window will end the wait. (optional)
try:
# Waits for a window content update event to occur.
api_response = api_instance.ui_device_wait_for_window_update_get(timeout, package_name=package_name)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_wait_for_window_update_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 789 # int | The search condition object ID
timeout = 789 # int | The timeout in ms (optional)
try:
# Waits for given the condition to be met.
api_response = api_instance.ui_device_wait_get(oid, timeout=timeout)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_device_wait_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Clears the text content if this object is an editable field.
api_response = api_instance.ui_object2_oid_clear_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_clear_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
event_condition_ref = 789 # int | The event condition
timeout = 10000 # int | in milliseconds (optional) (default to 10000)
try:
# Clicks on the specified object.
api_response = api_instance.ui_object2_oid_click_and_wait_get(oid, event_condition_ref, timeout=timeout)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_click_and_wait_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Clicks on the specified object.
api_response = api_instance.ui_object2_oid_click_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_click_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Dumps the specified object.
api_response = api_instance.ui_object2_oid_dump_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_dump_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
by_selector = 'by_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - checkable - clazz - clickable - depth - desc - package - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
try:
# Finds an object.
api_response = api_instance.ui_object2_oid_find_object_get(oid, by_selector=by_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_find_object_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Selector() # Selector | Selector
oid = 56 # int | The object ID
try:
# Finds an object.
api_response = api_instance.ui_object2_oid_find_object_post(body, oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_find_object_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Returns the number of child elements directly under this object.
api_response = api_instance.ui_object2_oid_get_child_count_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_get_child_count_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
api_response = api_instance.ui_object2_oid_get_children_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_get_children_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Returns the content description for this object.
api_response = api_instance.ui_object2_oid_get_content_description_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_get_content_description_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Gets the text content.
api_response = api_instance.ui_object2_oid_get_text_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_get_text_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Long-clicks on the specified object.
api_response = api_instance.ui_object2_oid_long_click_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_long_click_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
text = 'text_example' # str | Text to enter in the field
try:
# Sets the text content if this object is an editable field.
api_response = api_instance.ui_object2_oid_set_text_get(oid, text)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_set_text_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Text() # Text | Text to enter in the field
oid = 56 # int | The object ID
try:
# Sets the text content if this object is an editable field.
api_response = api_instance.ui_object2_oid_set_text_post(body, oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object2_oid_set_text_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Clears the existing text contents in an editable field.
api_response = api_instance.ui_object_oid_clear_text_field_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_clear_text_field_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
timeout = 10000 # int | Timeout in milliseconds (optional) (default to 10000)
try:
# Clicks on the specified object.
api_response = api_instance.ui_object_oid_click_and_wait_for_new_window_get(oid, timeout=timeout)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_click_and_wait_for_new_window_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Clicks on the specified object.
api_response = api_instance.ui_object_oid_click_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_click_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Dumps the specified object.
api_response = api_instance.ui_object_oid_dump_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_dump_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# This basically returns immediately whether the view represented by this UiObject exists or not. If you need to wait longer for this view, then see waitForExists.
api_response = api_instance.ui_object_oid_exists_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_exists_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Returns the view's bounds property.
api_response = api_instance.ui_object_oid_get_bounds_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_bounds_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Counts the child views immediately under the present UiObject.
api_response = api_instance.ui_object_oid_get_child_count_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_child_count_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
ui_selector = 'ui_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - clazz or className - clickable - depth - desc - index - instance - package - parentIndex - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
try:
# The child
api_response = api_instance.ui_object_oid_get_child_get(oid, ui_selector=ui_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_child_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Retrieves the className property of the UI element.
api_response = api_instance.ui_object_oid_get_class_name_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_class_name_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Reads the content_desc property of the UI element.
api_response = api_instance.ui_object_oid_get_content_description_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_content_description_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
ui_selector = 'ui_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - clazz or className - clickable - depth - desc - index - instance - package - parentIndex - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
try:
# Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject.
api_response = api_instance.ui_object_oid_get_from_parent_get(oid, ui_selector=ui_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_get_from_parent_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
body = culebratester_client.PerformTwoPointerGestureBody() # PerformTwoPointerGestureBody | (optional)
try:
api_response = api_instance.ui_object_oid_perform_two_pointer_gesture_post(oid, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_perform_two_pointer_gesture_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
percentage = 56 # int | percentage of the object's diagonal length for the pinch gesture
steps = 56 # int | the number of steps for the gesture. Steps are injected about 5 milliseconds apart, so 100 steps may take around 0.5 seconds to complete.
try:
api_response = api_instance.ui_object_oid_pinch_in_get(oid, percentage, steps)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_pinch_in_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
percentage = 56 # int | percentage of the object's diagonal length for the pinch gesture
steps = 56 # int | the number of steps for the gesture. Steps are injected about 5 milliseconds apart, so 100 steps may take around 0.5 seconds to complete.
try:
api_response = api_instance.ui_object_oid_pinch_out_get(oid, percentage, steps)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_pinch_out_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
timeout = 789 # int | the amount of time to wait (in milliseconds)
try:
# This method waits until the view becomes visible on the display, or until the timeout has elapsed. You can use this method in situations where the content that you want to select is not immediately displayed.
api_response = api_instance.ui_object_oid_wait_for_exists_get(oid, timeout)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->ui_object_oid_wait_for_exists_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
by_selector = 'by_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - checkable - clazz - clickable - depth - desc - package - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
try:
# Returns a SearchCondition that is satisfied when at least one element matching the selector can be found.
api_response = api_instance.until_find_object_get(by_selector=by_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->until_find_object_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Selector() # Selector | Selector
try:
# Returns a SearchCondition that is satisfied when at least one element matching the selector can be found.
api_response = api_instance.until_find_object_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->until_find_object_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
by_selector = 'by_selector_example' # str | the selector sets the resource name criteria for matching. A UI element will be considered a match if its resource name exactly matches the selector parameter and all other criteria for this selector are met. The format of the selector string is `sel@[\\$]value,...` Where `sel` can be one of - checkable - clazz - clickable - depth - desc - package - res - scrollable - text `@` replaces the `=` sign that is used to separate parameters and values in the URL. If the first character of value is `$` then a `Pattern` is created. (optional)
try:
# Returns a SearchCondition that is satisfied when at least one element matching the selector can be found.
api_response = api_instance.until_find_objects_get(by_selector=by_selector)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->until_find_objects_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
body = culebratester_client.Selector() # Selector | Selector
try:
# Returns a SearchCondition that is satisfied when at least one element matching the selector can be found.
api_response = api_instance.until_find_objects_post(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->until_find_objects_post: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
try:
# Returns a condition that depends on a new window having appeared.
api_response = api_instance.until_new_window_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->until_new_window_get: %s\n" % e)
# create an instance of the API class
api_instance = culebratester_client.DefaultApi(culebratester_client.ApiClient(configuration))
oid = 56 # int | The object ID
try:
# Dumps the specified object.
api_response = api_instance.until_oid_dump_get(oid)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->until_oid_dump_get: %s\n" % e)
All URIs are relative to http://localhost:9987/v2
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | am_force_stop_get | GET /am/forceStop | Completely stop the given application package. |
DefaultApi | configurator_get_wait_for_idle_timeout_get | GET /configurator/getWaitForIdleTimeout | Gets the current timeout used for waiting for the user interface to go into an idle state. |
DefaultApi | configurator_set_wait_for_idle_timeout_get | GET /configurator/setWaitForIdleTimeout | Sets the timeout for waiting for the user interface to go into an idle state before starting a uiautomator action. |
DefaultApi | culebra_help_api_get | GET /culebra/help/{api} | Gets help |
DefaultApi | culebra_info_get | GET /culebra/info | Gets information about this app. |
DefaultApi | culebra_quit_get | GET /culebra/quit | Quits culebra server. |
DefaultApi | device_display_real_size_get | GET /device/displayRealSize | Gets display real size. |
DefaultApi | device_dumpsys_get | GET /device/dumpsys | |
DefaultApi | device_locale_get | GET /device/locale | |
DefaultApi | device_locale_post | POST /device/locale | |
DefaultApi | device_wait_for_new_toast_get | GET /device/waitForNewToast | Waits for a new Toast. |
DefaultApi | object_store_clear_get | GET /objectStore/clear | Clears all the objects in store. |
DefaultApi | object_store_list_get | GET /objectStore/list | Lists the objects in store. |
DefaultApi | object_store_remove_get | GET /objectStore/remove | Removes an object. |
DefaultApi | target_context_start_activity_get | GET /targetContext/startActivity | Starts an Activity. |
DefaultApi | ui_device_clear_last_traversed_text_get | GET /uiDevice/clearLastTraversedText | Clears the text from the last UI traversal event. |
DefaultApi | ui_device_click_get | GET /uiDevice/click | Clicks at the specified location. |
DefaultApi | ui_device_click_post | POST /uiDevice/click | Clicks at the specified locations. |
DefaultApi | ui_device_current_package_name_get | GET /uiDevice/currentPackageName | Gets the current package name. |
DefaultApi | ui_device_display_height_get | GET /uiDevice/displayHeight | Gets the display height. |
DefaultApi | ui_device_display_rotation_get | GET /uiDevice/displayRotation | Gets the display rotation. |
DefaultApi | ui_device_display_size_dp_get | GET /uiDevice/displaySizeDp | Gets the display size in DP. |
DefaultApi | ui_device_display_width_get | GET /uiDevice/displayWidth | Gets the display width. |
DefaultApi | ui_device_drag_get | GET /uiDevice/drag | Performs a swipe from one coordinate to another coordinate. |
DefaultApi | ui_device_dump_window_hierarchy_get | GET /uiDevice/dumpWindowHierarchy | Dumps the window hierarchy. |
DefaultApi | ui_device_find_object_get | GET /uiDevice/findObject | Finds an object. |
DefaultApi | ui_device_find_object_post | POST /uiDevice/findObject | Finds an object. |
DefaultApi | ui_device_find_objects_get | GET /uiDevice/findObjects | Finds all objects that match the selector criteria. |
DefaultApi | ui_device_find_objects_post | POST /uiDevice/findObjects | Finds all objects. |
DefaultApi | ui_device_freeze_rotation_get | GET /uiDevice/freezeRotation | Disables the sensors and freezes the device rotation at its current rotation state. |
DefaultApi | ui_device_has_object_get | GET /uiDevice/hasObject | Returns whether there is a match for the given selector criteria. |
DefaultApi | ui_device_has_object_post | POST /uiDevice/hasObject | Returns whether there is a match for the given selector criteria. |
DefaultApi | ui_device_is_natural_orientation_get | GET /uiDevice/isNaturalOrientation | Check if the device is in its natural orientation. |
DefaultApi | ui_device_is_screen_on_get | GET /uiDevice/isScreenOn | Checks the power manager if the screen is ON. |
DefaultApi | ui_device_last_traversed_text_get | GET /uiDevice/lastTraversedText | Retrieves the text from the last UI traversal event received. |
DefaultApi | ui_device_pixel_get | GET /uiDevice/pixel | Gets a pixel from device screen. |
DefaultApi | ui_device_press_back_get | GET /uiDevice/pressBack | Simulates a short press on the BACK button. |
DefaultApi | ui_device_press_d_pad_center_get | GET /uiDevice/pressDPadCenter | Simulates a short press on the CENTER button. |
DefaultApi | ui_device_press_d_pad_down_get | GET /uiDevice/pressDPadDown | Simulates a short press on the DOWN button. |
DefaultApi | ui_device_press_d_pad_left_get | GET /uiDevice/pressDPadLeft | Simulates a short press on the LEFT button. |
DefaultApi | ui_device_press_d_pad_right_get | GET /uiDevice/pressDPadRight | Simulates a short press on the RIGHT button. |
DefaultApi | ui_device_press_d_pad_up_get | GET /uiDevice/pressDPadUp | Simulates a short press on the UP button. |
DefaultApi | ui_device_press_delete_get | GET /uiDevice/pressDelete | Simulates a short press on the DELETE key. |
DefaultApi | ui_device_press_enter_get | GET /uiDevice/pressEnter | Simulates a short press on the ENTER key. |
DefaultApi | ui_device_press_home_get | GET /uiDevice/pressHome | Simulates a short press on the HOME button. |
DefaultApi | ui_device_press_key_code_get | GET /uiDevice/pressKeyCode | Simulates a short press using a key code. |
DefaultApi | ui_device_press_recent_apps_get | GET /uiDevice/pressRecentApps | Simulates a short press on the Recent Apps button. |
DefaultApi | ui_device_product_name_get | GET /uiDevice/productName | Retrieves the product name of the device. |
DefaultApi | ui_device_screenshot_get | GET /uiDevice/screenshot | Gets the device screenshot. |
DefaultApi | ui_device_swipe_get | GET /uiDevice/swipe | Performs a swipe. |
DefaultApi | ui_device_swipe_post | POST /uiDevice/swipe | Performs a swipe between points in the Point array. |
DefaultApi | ui_device_unfreeze_rotation_get | GET /uiDevice/unfreezeRotation | Re-enables the sensors and un-freezes the device rotation allowing its contents to rotate with the device physical rotation |
DefaultApi | ui_device_wait_for_idle_get | GET /uiDevice/waitForIdle | Waits for the current application to idle. |
DefaultApi | ui_device_wait_for_window_update_get | GET /uiDevice/waitForWindowUpdate | Waits for a window content update event to occur. |
DefaultApi | ui_device_wait_get | GET /uiDevice/wait | Waits for given the condition to be met. |
DefaultApi | ui_object2_oid_clear_get | GET /uiObject2/{oid}/clear | Clears the text content if this object is an editable field. |
DefaultApi | ui_object2_oid_click_and_wait_get | GET /uiObject2/{oid}/clickAndWait | Clicks on the specified object. |
DefaultApi | ui_object2_oid_click_get | GET /uiObject2/{oid}/click | Clicks on the specified object. |
DefaultApi | ui_object2_oid_dump_get | GET /uiObject2/{oid}/dump | Dumps the specified object. |
DefaultApi | ui_object2_oid_find_object_get | GET /uiObject2/{oid}/findObject | Finds an object. |
DefaultApi | ui_object2_oid_find_object_post | POST /uiObject2/{oid}/findObject | Finds an object. |
DefaultApi | ui_object2_oid_get_child_count_get | GET /uiObject2/{oid}/getChildCount | Returns the number of child elements directly under this object. |
DefaultApi | ui_object2_oid_get_children_get | GET /uiObject2/{oid}/getChildren | |
DefaultApi | ui_object2_oid_get_content_description_get | GET /uiObject2/{oid}/getContentDescription | Returns the content description for this object. |
DefaultApi | ui_object2_oid_get_text_get | GET /uiObject2/{oid}/getText | Gets the text content. |
DefaultApi | ui_object2_oid_long_click_get | GET /uiObject2/{oid}/longClick | Long-clicks on the specified object. |
DefaultApi | ui_object2_oid_set_text_get | GET /uiObject2/{oid}/setText | Sets the text content if this object is an editable field. |
DefaultApi | ui_object2_oid_set_text_post | POST /uiObject2/{oid}/setText | Sets the text content if this object is an editable field. |
DefaultApi | ui_object_oid_clear_text_field_get | GET /uiObject/{oid}/clearTextField | Clears the existing text contents in an editable field. |
DefaultApi | ui_object_oid_click_and_wait_for_new_window_get | GET /uiObject/{oid}/clickAndWaitForNewWindow | Clicks on the specified object. |
DefaultApi | ui_object_oid_click_get | GET /uiObject/{oid}/click | Clicks on the specified object. |
DefaultApi | ui_object_oid_dump_get | GET /uiObject/{oid}/dump | Dumps the specified object. |
DefaultApi | ui_object_oid_exists_get | GET /uiObject/{oid}/exists | This basically returns immediately whether the view represented by this UiObject exists or not. If you need to wait longer for this view, then see waitForExists. |
DefaultApi | ui_object_oid_get_bounds_get | GET /uiObject/{oid}/getBounds | Returns the view's bounds property. |
DefaultApi | ui_object_oid_get_child_count_get | GET /uiObject/{oid}/getChildCount | Counts the child views immediately under the present UiObject. |
DefaultApi | ui_object_oid_get_child_get | GET /uiObject/{oid}/getChild | The child |
DefaultApi | ui_object_oid_get_class_name_get | GET /uiObject/{oid}/getClassName | Retrieves the className property of the UI element. |
DefaultApi | ui_object_oid_get_content_description_get | GET /uiObject/{oid}/getContentDescription | Reads the content_desc property of the UI element. |
DefaultApi | ui_object_oid_get_from_parent_get | GET /uiObject/{oid}/getFromParent | Creates a new UiObject for a sibling view or a child of the sibling view, relative to the present UiObject. |
DefaultApi | ui_object_oid_perform_two_pointer_gesture_post | POST /uiObject/{oid}/performTwoPointerGesture | |
DefaultApi | ui_object_oid_pinch_in_get | GET /uiObject/{oid}/pinchIn | |
DefaultApi | ui_object_oid_pinch_out_get | GET /uiObject/{oid}/pinchOut | |
DefaultApi | ui_object_oid_wait_for_exists_get | GET /uiObject/{oid}/waitForExists | This method waits until the view becomes visible on the display, or until the timeout has elapsed. You can use this method in situations where the content that you want to select is not immediately displayed. |
DefaultApi | until_find_object_get | GET /until/findObject | Returns a SearchCondition that is satisfied when at least one element matching the selector can be found. |
DefaultApi | until_find_object_post | POST /until/findObject | Returns a SearchCondition that is satisfied when at least one element matching the selector can be found. |
DefaultApi | until_find_objects_get | GET /until/findObjects | Returns a SearchCondition that is satisfied when at least one element matching the selector can be found. |
DefaultApi | until_find_objects_post | POST /until/findObjects | Returns a SearchCondition that is satisfied when at least one element matching the selector can be found. |
DefaultApi | until_new_window_get | GET /until/newWindow | Returns a condition that depends on a new window having appeared. |
DefaultApi | until_oid_dump_get | GET /until/{oid}/dump | Dumps the specified object. |
- AnyValue
- BooleanResponse
- ClickBody
- CulebraInfo
- CurrentPackageName
- DisplayHeight
- DisplayRealSize
- DisplayRotationEnum
- DisplayRotationResponse
- DisplaySizeDp
- DisplayWidth
- Help
- InlineResponse200
- LastTraversedText
- Locale
- NumberResponse
- ObjectRef
- Pattern
- PerformTwoPointerGestureBody
- Pixel
- Point
- ProductName
- Rect
- Selector
- StatusResponse
- StringResponse
- SwipeBody
- Text
- Timeout
- WindowHierarchy
- WindowHierarchyChild
All endpoints do not require authorization.