Appium Fields

The following Fields are available with the default Appium implementation. Each implements a specific performer method.

  • Button: Clickable object.
  • Input: Object that accepts keyboard input.
class stere.fields.Button

Convenience Class on top of Field, it implements click() as its performer.

Button.click()

Uses Appium’s click method.

Example:

>>> purchase = Button('id', 'buy_button')
>>> purchase.click()
class stere.fields.Input

A simple wrapper over Field, it implements send_keys() as its performer.

Input.send_keys()

Uses Appium’s fill method.

Parameters:value (str) – The text to enter into the input.

Example:

>>> first_name = Input('id', 'fillme')
>>> first_name.send_keys('Joseph')

Fills the element with value.

Location Strategies

These represent the way a locator will be searched for.

By default, the strategies available are:

  • accessibility_id
  • android_uiautomator
  • ios_class_chain
  • ios_predicate
  • ios_uiautomation

These strategies can be overridden with a custom strategy (ie: You can create a custom accessibility_id strategy with different behaviour).