clazz

Sets the class name criteria for matching. A UI element will be considered a match if its
package and class name exactly match the packageName and className parameters
and all other criteria for this selector are met.

clazz

Sets the class name criteria for matching. A UI element will be considered a match if its
class name exactly matches the className parameter and all other criteria for
this selector are met. If className starts with a period, it is assumed to be in the
android.widget package.

depth

desc

Sets the content description criteria for matching. A UI element will be considered a match
if its content description exactly matches the contentDescription parameter and all
other criteria for this selector are met.

desc

Sets the content description criteria for matching. A UI element will be considered a match
if its content description matches the contentDescriptionPattern and all
other criteria for this selector are met.

descContains

Sets the content description criteria for matching. A UI element will be considered a match
if its content description contains the substring parameter and all other criteria
for this selector are met.

descEndsWith

Sets the content description criteria for matching. A UI element will be considered a match
if its content description ends with the substring parameter and all other criteria
for this selector are met.

descStartsWith

Sets the content description criteria for matching. A UI element will be considered a match
if its content description starts with the substring parameter and all other criteria
for this selector are met.

hasChild

Adds a child selector criteria for matching. A UI element will be considered a match if it
has a child element (direct descendant) which matches the childSelector and all
other criteria for this selector are met. If specified more than once, matches must be found
for all childSelectors.

hasDescendant

Adds a descendant selector criteria for matching. A UI element will be considered a match if
it has a descendant element which matches the descendantSelector and all other
criteria for this selector are met. If specified more than once, matches must be found for
all descendantSelectors.

hasDescendant

Adds a descendant selector criteria for matching. A UI element will be considered a match if
it has a descendant element which matches the descendantSelector and all other
criteria for this selector are met. If specified more than once, matches must be found for
all descendantSelectors.

minDepth

pkg

Sets the package name criteria for matching. A UI element will be considered a match if its
application package name matches the applicationPackagePattern and all other
criteria for this selector are met.

pkg

Sets the application package name criteria for matching. A UI element will be considered a
match if its application package name exactly matches the applicationPackage
parameter and all other criteria for this selector are met.

res

Sets the resource name criteria for matching. A UI element will be considered a match if its
resource package and resource id exactly match the resourcePackage and
resourceId parameters and all other criteria for this selector are met.

toString

Returns a String representation of this BySelector. The format is
"BySelector [<KEY>='<VALUE> ... ]". Each criteria is listed as a key-value pair
where the key is the name of the criteria expressed in all caps (e.g. CLAZZ, RES, etc).