FANDOM


Dynamic Strategy is only available on Android. It's made up of a series of key, value pairs. For example, to find an element that is, enabled, clickable, and contains the text "bob", it would looks something like:

driver.execute("mobile: find", [ [ [ [10, true] ],[ [14, true] ], [ [3, "bob"] ] ] ])


SELECTOR_TEXT                 = 1 

SELECTOR_START_TEXT           = 2 

SELECTOR_CONTAINS_TEXT        = 3 

SELECTOR_CLASS                = 4 

SELECTOR_DESCRIPTION          = 5 

SELECTOR_START_DESCRIPTION    = 6 

SELECTOR_CONTAINS_DESCRIPTION = 7 

SELECTOR_INDEX                = 8 

SELECTOR_INSTANCE             = 9 

SELECTOR_ENABLED              = 10 

SELECTOR_FOCUSED              = 11 

SELECTOR_FOCUSABLE            = 12 

SELECTOR_SCROLLABLE           = 13 

SELECTOR_CLICKABLE            = 14 

SELECTOR_CHECKED              = 15 

SELECTOR_SELECTED             = 16 

SELECTOR_PACKAGE_NAME         = 18 

SELECTOR_LONG_CLICKABLE       = 24 

SELECTOR_TEXT_REGEX           = 25 

SELECTOR_CLASS_REGEX          = 26 

SELECTOR_DESCRIPTION_REGEX    = 27 

SELECTOR_PACKAGE_NAME_REGEX   = 28