Skip to main content

Python Mobile-Device Object Type Definitions

Runavelo adds the following types to the Python environment. You can use them without importing a module.

ElementDescriptor

class ElementDescriptor:
def __init__(self, uid, name):
"""
Identifies an element used by commands such as click and input.
:param uid: UID generated when the element is captured
:param name: Element name shown when the element cannot be found
"""
self._uid = uid
self._name = name

@property
def name(self) -> str:
return self._name

@property
def uid(self) -> str:
return self._uid


Phone

class Phone:
pass
@property
def serialId(self) -> str:
"""
Device serial number
:return: str
"""
pass

@property
def version(self) -> str:
"""
Device operating-system version
:return: str
"""
pass

@property
def apiLevel(self) -> int:
"""
Android API level
:return: int
"""
pass

@property
def brand(self) -> str:
"""
:return: str
"""
pass

@property
def manufacturer(self) -> str:
"""
:return: str
"""
pass

@property
def width(self) -> int:
"""
Device screen width
:return: int
"""
pass

@property
def height(self):
"""
Device screen height
:return: int
"""
pass

@property
def marketName(self):
"""
Device model
:return: str
"""
pass

@property
def phoneNumbers(self):
"""
Phone numbers associated with the device; multiple SIM cards are supported
:return: list[str]
"""
pass

@property
def density(self):
"""
Device screen density
:return: int
"""
pass

PhoneElement

class PhoneElement:

@property
def text(self):
"""
The text displayed by the element
:return: str
"""
pass

@property
def left(self):
"""
Distance in pixels from the element's left edge to the screen's left edge
:return: int
"""
pass

@property
def top(self):
"""
Distance in pixels from the element's top edge to the screen's top edge
:return: int
"""
pass

@property
def right(self):
"""
Distance in pixels from the element's right edge to the screen's left edge
:return: int
"""
pass

@property
def bottom(self):
"""
Distance in pixels from the element's bottom edge to the screen's top edge
:return: int
"""
pass

@property
def width(self):
"""
Element width in pixels
:return: int
"""
pass

@property
def height(self):
"""
Element height (pixels)
:return: int
"""
pass

@property
def x_center(self):
pass

@property
def y_center(self):
pass

@property
def x_random(self):
pass

@property
def y_random(self):
pass

@property
def properties(self):
pass

SMS

class SMS:

@property
def content(self):
"""
SMS content
:return: str
"""
pass


@property
def sender(self):
"""
Sender's phone number
:return: str
"""
pass

@property
def receiver(self):
"""
Recipient's phone number
:return: str
"""
pass

@property
def date(self):
"""
SMS date
:return: str
"""
pass