Package com :: Package dtmilano :: Package android :: Module viewclient |
[hide private]
[frames] | no frames]

# Module viewclient

source code

    Copyright (C) 2012-2017  Diego Torres Milano
    Created on Feb 2, 2012

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

    @author: Diego Torres Milano

Version: 13.3.2

Classes | [hide private]
| ViewNotFoundException ViewNotFoundException is raised when a View is not found.
| View View class
| TextView TextView class.
| EditText EditText class.
| UiDevice Provides access to state information about the device.
| UiCollection Used to enumerate a container's user interface (UI) elements for the purpose of counting, or targeting a sub elements by a child's text or description.
| UiScrollable A UiCollection that supports searching for items in scrollable layout elements.
| ListView ListView class.
| UiAutomator2AndroidViewClient UiAutomator XML to AndroidViewClient
| Excerpt2Code Excerpt XML to code
| ViewClientOptions ViewClient options helper class
| ViewClient ViewClient is a ViewServer client.
| ConnectedDevice
| CulebraOptions Culebra options helper class
| CulebraTestCase The base class for all CulebraTests.

Variables | [hide private]
| DEBUG = `False`
| DEBUG_DEVICE = `False`
| DEBUG_RECEIVED = `False`
| DEBUG_TREE = `False`
| DEBUG_GETATTR = `False`
| DEBUG_CALL = `False`
| DEBUG_COORDS = `False`
| DEBUG_TOUCH = `False`
| DEBUG_STATUSBAR = `False`
| DEBUG_WINDOWS = `False`
| DEBUG_BOUNDS = `False`
| DEBUG_DISTANCE = `False`
| DEBUG_MULTI = `False`
| DEBUG_VIEW = `False`
| DEBUG_VIEW_FACTORY = `False`
| DEBUG_CHANGE_LANGUAGE = `False`
| DEBUG_UI_AUTOMATOR = `False`
| DEBUG_UI_AUTOMATOR_HELPER = `False`
| DEBUG_NAV_BUTTONS = `False`
| WARNINGS = `False`
| VIEW_SERVER_HOST = ``'``localhost``'``
| VIEW_SERVER_PORT = `4939`
| ADB_DEFAULT_PORT = `5555`
| OFFSET = `25` This assumes the smallest touchable view on the screen is approximately 50px x 50px and touches it at (x+OFFSET, y+OFFSET)
| USE_ADB_CLIENT_TO_GET_BUILD_PROPERTIES = `True` Use `AdbClient` to obtain the needed properties.
| USE_PHYSICAL_DISPLAY_INFO = `True` Use `dumpsys display` to obtain display properties.
| SKIP_CERTAIN_CLASSES_IN_GET_XY_ENABLED = `False` Skips some classes related with the Action Bar and the PhoneWindow$DecorView in the coordinates calculation
| VIEW_CLIENT_TOUCH_WORKAROUND_ENABLED = `False` Under some conditions the touch event should be longer [t(DOWN) << t(UP)].
| VERSION_SDK_PROPERTY = ``'``ro.build.version.sdk``'``
| VERSION_RELEASE_PROPERTY = ``'``ro.build.version.release``'``
| ID_PROPERTY = ``'``mID``'``
| ID_PROPERTY_UI_AUTOMATOR = ``'``uniqueId``'``
| TEXT_PROPERTY = ``'``text:mText``'``
| TEXT_PROPERTY_API_10 = ``'``mText``'``
| TEXT_PROPERTY_UI_AUTOMATOR = ``'``text``'``
| WS = ``u'``þ``'``
| TAG_PROPERTY = ``'``getTag()``'``
| LEFT_PROPERTY = ``'``layout:mLeft``'``
| LEFT_PROPERTY_API_8 = ``'``mLeft``'``
| TOP_PROPERTY = ``'``layout:mTop``'``
| TOP_PROPERTY_API_8 = ``'``mTop``'``
| WIDTH_PROPERTY = ``'``layout:getWidth()``'``
| WIDTH_PROPERTY_API_8 = ``'``getWidth()``'``
| HEIGHT_PROPERTY = ``'``layout:getHeight()``'``
| HEIGHT_PROPERTY_API_8 = ``'``getHeight()``'``
| GET_VISIBILITY_PROPERTY = ``'``getVisibility()``'``
| LAYOUT_TOP_MARGIN_PROPERTY = ``'``layout:layout_topMargin``'``
| IS_FOCUSED_PROPERTY_UI_AUTOMATOR = ``'``focused``'``
| IS_FOCUSED_PROPERTY = ``'``focus:isFocused()``'``
| VISIBLE = `0`
| INVISIBLE = `4`
| GONE = `8`
| IP_RE = `re.compile(r'^`(`\d`{1,3}`\.`)``{3}`\d`{1,3}`$')`
| ID_RE = `re.compile(r'id/`(``[^`/`]``*``)``(`/`(`\d`+``)``)``?`')`
| IP_DOMAIN_NAME_PORT_REGEX = ``'``(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[``...``
| __package__ = ``'``com.dtmilano.android``'``

Variables Details | [hide private]

  ### USE_ADB_CLIENT_TO_GET_BUILD_PROPERTIES Use `AdbClient` to obtain the needed properties. If this is `False` then `adb shell getprop` is used Value:
      True

  ### USE_PHYSICAL_DISPLAY_INFO Use `dumpsys display` to obtain display properties. If this is `False` then `USE_ADB_CLIENT_TO_GET_BUILD_PROPERTIES` is used Value:
      True

  ### SKIP_CERTAIN_CLASSES_IN_GET_XY_ENABLED Skips some classes related with the Action Bar and the PhoneWindow$DecorView in the coordinates calculation See Also: View.getXY() Value:
      False

  ### VIEW_CLIENT_TOUCH_WORKAROUND_ENABLED Under some conditions the touch event should be longer [t(DOWN) << t(UP)]. `True` enables a workaround to delay the events. Value:
      False

  ### IP_DOMAIN_NAME_PORT_REGEX Value:
      '(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+(?:[A-Z]{2,6}\\.?|[A-Z
      0-9-]{2,}\\.?)|localhost|\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})(?:
      :\\d+)?(?:/?|[/?]\\S+)$'