1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119<!DOCTYPE html>
120<html devsite>
121<head>
122
123
124    <meta name="top_category" value="develop" />
125
126    <meta name="subcategory" value="reference" />
127
128
129      <meta name="book_path" value="/reference/android/support/test/_book.yaml" />
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145<title>BySelector</title>
146
147
148</head>
149
150<body class="gc-documentation develop reference api apilevel-">
151<div id="doc-api-level" class="" style="display:none"></div>
152
153
154
155
156<div id="naMessage"></div>
157
158<div id="api-info-block">
159<div class="api-level">
160
161
162
163
164</div>
165
166
167
168
169
170
171
172
173
174
175
176<div class="sum-details-links">
177
178Summary:
179
180
181
182
183
184
185
186
187
188
189
190  <a href="#pubmethods">Methods</a>
191
192
193
194
195  &#124; <a href="#inhmethods">Inherited Methods</a>
196
197&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
198
199</div><!-- end sum-details-links -->
200</div><!-- end api-info-block -->
201
202<div class="api apilevel-" id="jd-content">
203
204<!-- ======== START OF CLASS DATA ======== -->
205
206<h1 class="api-title">BySelector</h1>
207<p>
208<code class="api-signature">
209  public
210
211
212
213  class
214  BySelector
215</code>
216<br>
217
218
219<code class="api-signature">
220
221    extends Object
222
223
224
225</code>
226
227<code class="api-signature">
228
229
230
231</code>
232
233</p><table class="jd-inheritance-table">
234
235
236  <tr>
237
238    <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object
239    </td>
240  </tr>
241
242
243  <tr>
244
245      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
246
247    <td colspan="1" class="jd-inheritance-class-cell">android.support.test.uiautomator.BySelector
248    </td>
249  </tr>
250
251
252</table>
253
254
255
256
257<br><hr>
258
259
260  <p>A <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code> specifies criteria for matching UI elements during a call to
261 <code><a href="/reference/android/support/test/uiautomator/UiDevice.html#findObject(android.support.test.uiautomator.BySelector)">findObject(BySelector)</a></code>.
262</p>
263
264
265
266
267
268
269
270<h2 class="api-section">Summary</h2>
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298<!-- ========== METHOD SUMMARY =========== -->
299<table id="pubmethods" class="responsive methods">
300<tr><th colspan="2"><h3>Public methods</h3></th></tr>
301
302
303
304
305  <tr class="api apilevel-" >
306
307
308    <td><code>
309
310
311
312
313
314        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
315    </td>
316
317    <td width="100%">
318      <code>
319      <a href="/reference/android/support/test/uiautomator/BySelector.html#checkable(boolean)">checkable</a>(boolean isCheckable)
320      </code>
321
322        <p>Sets the search criteria to match elements that are checkable or not checkable.
323
324
325</p>
326
327    </td>
328  </tr>
329
330
331
332  <tr class="api apilevel-" >
333
334
335    <td><code>
336
337
338
339
340
341        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
342    </td>
343
344    <td width="100%">
345      <code>
346      <a href="/reference/android/support/test/uiautomator/BySelector.html#checked(boolean)">checked</a>(boolean isChecked)
347      </code>
348
349        <p>Sets the search criteria to match elements that are checked or unchecked.
350
351
352</p>
353
354    </td>
355  </tr>
356
357
358
359  <tr class="api apilevel-" >
360
361
362    <td><code>
363
364
365
366
367
368        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
369    </td>
370
371    <td width="100%">
372      <code>
373      <a href="/reference/android/support/test/uiautomator/BySelector.html#clazz(java.lang.String, java.lang.String)">clazz</a>(String packageName, String className)
374      </code>
375
376        <p>Sets the class name criteria for matching.
377
378
379</p>
380
381    </td>
382  </tr>
383
384
385
386  <tr class="api apilevel-" >
387
388
389    <td><code>
390
391
392
393
394
395        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
396    </td>
397
398    <td width="100%">
399      <code>
400      <a href="/reference/android/support/test/uiautomator/BySelector.html#clazz(java.lang.Class)">clazz</a>(Class clazz)
401      </code>
402
403        <p>Sets the class name criteria for matching.
404
405
406</p>
407
408    </td>
409  </tr>
410
411
412
413  <tr class="api apilevel-" >
414
415
416    <td><code>
417
418
419
420
421
422        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
423    </td>
424
425    <td width="100%">
426      <code>
427      <a href="/reference/android/support/test/uiautomator/BySelector.html#clazz(java.util.regex.Pattern)">clazz</a>(Pattern className)
428      </code>
429
430        <p>Sets the class name criteria for matching.
431
432
433</p>
434
435    </td>
436  </tr>
437
438
439
440  <tr class="api apilevel-" >
441
442
443    <td><code>
444
445
446
447
448
449        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
450    </td>
451
452    <td width="100%">
453      <code>
454      <a href="/reference/android/support/test/uiautomator/BySelector.html#clazz(java.lang.String)">clazz</a>(String className)
455      </code>
456
457        <p>Sets the class name criteria for matching.
458
459
460</p>
461
462    </td>
463  </tr>
464
465
466
467  <tr class="api apilevel-" >
468
469
470    <td><code>
471
472
473
474
475
476        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
477    </td>
478
479    <td width="100%">
480      <code>
481      <a href="/reference/android/support/test/uiautomator/BySelector.html#clickable(boolean)">clickable</a>(boolean isClickable)
482      </code>
483
484        <p>Sets the search criteria to match elements that are clickable or not clickable.
485
486
487</p>
488
489    </td>
490  </tr>
491
492
493
494  <tr class="api apilevel-" >
495
496
497    <td><code>
498
499
500
501
502
503        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
504    </td>
505
506    <td width="100%">
507      <code>
508      <a href="/reference/android/support/test/uiautomator/BySelector.html#depth(int, int)">depth</a>(int min, int max)
509      </code>
510
511        <p>Sets the search criteria to match elements that are in a range of depths.
512
513
514</p>
515
516    </td>
517  </tr>
518
519
520
521  <tr class="api apilevel-" >
522
523
524    <td><code>
525
526
527
528
529
530        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
531    </td>
532
533    <td width="100%">
534      <code>
535      <a href="/reference/android/support/test/uiautomator/BySelector.html#depth(int)">depth</a>(int exactDepth)
536      </code>
537
538        <p>Sets the search criteria to match elements that are at a certain depth.
539
540
541</p>
542
543    </td>
544  </tr>
545
546
547
548  <tr class="api apilevel-" >
549
550
551    <td><code>
552
553
554
555
556
557        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
558    </td>
559
560    <td width="100%">
561      <code>
562      <a href="/reference/android/support/test/uiautomator/BySelector.html#desc(java.lang.String)">desc</a>(String contentDescription)
563      </code>
564
565        <p>Sets the content description criteria for matching.
566
567
568</p>
569
570    </td>
571  </tr>
572
573
574
575  <tr class="api apilevel-" >
576
577
578    <td><code>
579
580
581
582
583
584        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
585    </td>
586
587    <td width="100%">
588      <code>
589      <a href="/reference/android/support/test/uiautomator/BySelector.html#desc(java.util.regex.Pattern)">desc</a>(Pattern contentDescription)
590      </code>
591
592        <p>Sets the content description criteria for matching.
593
594
595</p>
596
597    </td>
598  </tr>
599
600
601
602  <tr class="api apilevel-" >
603
604
605    <td><code>
606
607
608
609
610
611        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
612    </td>
613
614    <td width="100%">
615      <code>
616      <a href="/reference/android/support/test/uiautomator/BySelector.html#descContains(java.lang.String)">descContains</a>(String substring)
617      </code>
618
619        <p>Sets the content description criteria for matching.
620
621
622</p>
623
624    </td>
625  </tr>
626
627
628
629  <tr class="api apilevel-" >
630
631
632    <td><code>
633
634
635
636
637
638        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
639    </td>
640
641    <td width="100%">
642      <code>
643      <a href="/reference/android/support/test/uiautomator/BySelector.html#descEndsWith(java.lang.String)">descEndsWith</a>(String substring)
644      </code>
645
646        <p>Sets the content description criteria for matching.
647
648
649</p>
650
651    </td>
652  </tr>
653
654
655
656  <tr class="api apilevel-" >
657
658
659    <td><code>
660
661
662
663
664
665        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
666    </td>
667
668    <td width="100%">
669      <code>
670      <a href="/reference/android/support/test/uiautomator/BySelector.html#descStartsWith(java.lang.String)">descStartsWith</a>(String substring)
671      </code>
672
673        <p>Sets the content description criteria for matching.
674
675
676</p>
677
678    </td>
679  </tr>
680
681
682
683  <tr class="api apilevel-" >
684
685
686    <td><code>
687
688
689
690
691
692        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
693    </td>
694
695    <td width="100%">
696      <code>
697      <a href="/reference/android/support/test/uiautomator/BySelector.html#enabled(boolean)">enabled</a>(boolean isEnabled)
698      </code>
699
700        <p>Sets the search criteria to match elements that are enabled or disabled.
701
702
703</p>
704
705    </td>
706  </tr>
707
708
709
710  <tr class="api apilevel-" >
711
712
713    <td><code>
714
715
716
717
718
719        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
720    </td>
721
722    <td width="100%">
723      <code>
724      <a href="/reference/android/support/test/uiautomator/BySelector.html#focusable(boolean)">focusable</a>(boolean isFocusable)
725      </code>
726
727        <p>Sets the search criteria to match elements that are focusable or not focusable.
728
729
730</p>
731
732    </td>
733  </tr>
734
735
736
737  <tr class="api apilevel-" >
738
739
740    <td><code>
741
742
743
744
745
746        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
747    </td>
748
749    <td width="100%">
750      <code>
751      <a href="/reference/android/support/test/uiautomator/BySelector.html#focused(boolean)">focused</a>(boolean isFocused)
752      </code>
753
754        <p>Sets the search criteria to match elements that are focused or unfocused.
755
756
757</p>
758
759    </td>
760  </tr>
761
762
763
764  <tr class="api apilevel-" >
765
766
767    <td><code>
768
769
770
771
772
773        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
774    </td>
775
776    <td width="100%">
777      <code>
778      <a href="/reference/android/support/test/uiautomator/BySelector.html#hasChild(android.support.test.uiautomator.BySelector)">hasChild</a>(<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> childSelector)
779      </code>
780
781        <p>Adds a child selector criteria for matching.
782
783
784</p>
785
786    </td>
787  </tr>
788
789
790
791  <tr class="api apilevel-" >
792
793
794    <td><code>
795
796
797
798
799
800        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
801    </td>
802
803    <td width="100%">
804      <code>
805      <a href="/reference/android/support/test/uiautomator/BySelector.html#hasDescendant(android.support.test.uiautomator.BySelector)">hasDescendant</a>(<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> descendantSelector)
806      </code>
807
808        <p>Adds a descendant selector criteria for matching.
809
810
811</p>
812
813    </td>
814  </tr>
815
816
817
818  <tr class="api apilevel-" >
819
820
821    <td><code>
822
823
824
825
826
827        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
828    </td>
829
830    <td width="100%">
831      <code>
832      <a href="/reference/android/support/test/uiautomator/BySelector.html#hasDescendant(android.support.test.uiautomator.BySelector, int)">hasDescendant</a>(<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> descendantSelector, int maxDepth)
833      </code>
834
835        <p>Adds a descendant selector criteria for matching.
836
837
838</p>
839
840    </td>
841  </tr>
842
843
844
845  <tr class="api apilevel-" >
846
847
848    <td><code>
849
850
851
852
853
854        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
855    </td>
856
857    <td width="100%">
858      <code>
859      <a href="/reference/android/support/test/uiautomator/BySelector.html#longClickable(boolean)">longClickable</a>(boolean isLongClickable)
860      </code>
861
862        <p>Sets the search criteria to match elements that are long clickable or not long clickable.
863
864
865</p>
866
867    </td>
868  </tr>
869
870
871
872  <tr class="api apilevel-" >
873
874
875    <td><code>
876
877
878
879
880
881        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
882    </td>
883
884    <td width="100%">
885      <code>
886      <a href="/reference/android/support/test/uiautomator/BySelector.html#maxDepth(int)">maxDepth</a>(int max)
887      </code>
888
889        <p>Sets the search criteria to match elements that are no more than a certain depth.
890
891
892</p>
893
894    </td>
895  </tr>
896
897
898
899  <tr class="api apilevel-" >
900
901
902    <td><code>
903
904
905
906
907
908        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
909    </td>
910
911    <td width="100%">
912      <code>
913      <a href="/reference/android/support/test/uiautomator/BySelector.html#minDepth(int)">minDepth</a>(int min)
914      </code>
915
916        <p>Sets the search criteria to match elements that are at least a certain depth.
917
918
919</p>
920
921    </td>
922  </tr>
923
924
925
926  <tr class="api apilevel-" >
927
928
929    <td><code>
930
931
932
933
934
935        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
936    </td>
937
938    <td width="100%">
939      <code>
940      <a href="/reference/android/support/test/uiautomator/BySelector.html#pkg(java.util.regex.Pattern)">pkg</a>(Pattern applicationPackage)
941      </code>
942
943        <p>Sets the package name criteria for matching.
944
945
946</p>
947
948    </td>
949  </tr>
950
951
952
953  <tr class="api apilevel-" >
954
955
956    <td><code>
957
958
959
960
961
962        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
963    </td>
964
965    <td width="100%">
966      <code>
967      <a href="/reference/android/support/test/uiautomator/BySelector.html#pkg(java.lang.String)">pkg</a>(String applicationPackage)
968      </code>
969
970        <p>Sets the application package name criteria for matching.
971
972
973</p>
974
975    </td>
976  </tr>
977
978
979
980  <tr class="api apilevel-" >
981
982
983    <td><code>
984
985
986
987
988
989        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
990    </td>
991
992    <td width="100%">
993      <code>
994      <a href="/reference/android/support/test/uiautomator/BySelector.html#res(java.lang.String)">res</a>(String resourceName)
995      </code>
996
997        <p>Sets the resource name criteria for matching.
998
999
1000</p>
1001
1002    </td>
1003  </tr>
1004
1005
1006
1007  <tr class="api apilevel-" >
1008
1009
1010    <td><code>
1011
1012
1013
1014
1015
1016        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1017    </td>
1018
1019    <td width="100%">
1020      <code>
1021      <a href="/reference/android/support/test/uiautomator/BySelector.html#res(java.lang.String, java.lang.String)">res</a>(String resourcePackage, String resourceId)
1022      </code>
1023
1024        <p>Sets the resource name criteria for matching.
1025
1026
1027</p>
1028
1029    </td>
1030  </tr>
1031
1032
1033
1034  <tr class="api apilevel-" >
1035
1036
1037    <td><code>
1038
1039
1040
1041
1042
1043        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1044    </td>
1045
1046    <td width="100%">
1047      <code>
1048      <a href="/reference/android/support/test/uiautomator/BySelector.html#res(java.util.regex.Pattern)">res</a>(Pattern resourceName)
1049      </code>
1050
1051        <p>Sets the resource name criteria for matching.
1052
1053
1054</p>
1055
1056    </td>
1057  </tr>
1058
1059
1060
1061  <tr class="api apilevel-" >
1062
1063
1064    <td><code>
1065
1066
1067
1068
1069
1070        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1071    </td>
1072
1073    <td width="100%">
1074      <code>
1075      <a href="/reference/android/support/test/uiautomator/BySelector.html#scrollable(boolean)">scrollable</a>(boolean isScrollable)
1076      </code>
1077
1078        <p>Sets the search criteria to match elements that are scrollable or not scrollable.
1079
1080
1081</p>
1082
1083    </td>
1084  </tr>
1085
1086
1087
1088  <tr class="api apilevel-" >
1089
1090
1091    <td><code>
1092
1093
1094
1095
1096
1097        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1098    </td>
1099
1100    <td width="100%">
1101      <code>
1102      <a href="/reference/android/support/test/uiautomator/BySelector.html#selected(boolean)">selected</a>(boolean isSelected)
1103      </code>
1104
1105        <p>Sets the search criteria to match elements that are selected or not selected.
1106
1107
1108</p>
1109
1110    </td>
1111  </tr>
1112
1113
1114
1115  <tr class="api apilevel-" >
1116
1117
1118    <td><code>
1119
1120
1121
1122
1123
1124        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1125    </td>
1126
1127    <td width="100%">
1128      <code>
1129      <a href="/reference/android/support/test/uiautomator/BySelector.html#text(java.util.regex.Pattern)">text</a>(Pattern textValue)
1130      </code>
1131
1132        <p>Sets the text value criteria for matching.
1133
1134
1135</p>
1136
1137    </td>
1138  </tr>
1139
1140
1141
1142  <tr class="api apilevel-" >
1143
1144
1145    <td><code>
1146
1147
1148
1149
1150
1151        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1152    </td>
1153
1154    <td width="100%">
1155      <code>
1156      <a href="/reference/android/support/test/uiautomator/BySelector.html#text(java.lang.String)">text</a>(String textValue)
1157      </code>
1158
1159        <p>Sets the text value criteria for matching.
1160
1161
1162</p>
1163
1164    </td>
1165  </tr>
1166
1167
1168
1169  <tr class="api apilevel-" >
1170
1171
1172    <td><code>
1173
1174
1175
1176
1177
1178        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1179    </td>
1180
1181    <td width="100%">
1182      <code>
1183      <a href="/reference/android/support/test/uiautomator/BySelector.html#textContains(java.lang.String)">textContains</a>(String substring)
1184      </code>
1185
1186        <p>Sets the text value criteria for matching.
1187
1188
1189</p>
1190
1191    </td>
1192  </tr>
1193
1194
1195
1196  <tr class="api apilevel-" >
1197
1198
1199    <td><code>
1200
1201
1202
1203
1204
1205        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1206    </td>
1207
1208    <td width="100%">
1209      <code>
1210      <a href="/reference/android/support/test/uiautomator/BySelector.html#textEndsWith(java.lang.String)">textEndsWith</a>(String substring)
1211      </code>
1212
1213        <p>Sets the text value criteria for matching.
1214
1215
1216</p>
1217
1218    </td>
1219  </tr>
1220
1221
1222
1223  <tr class="api apilevel-" >
1224
1225
1226    <td><code>
1227
1228
1229
1230
1231
1232        <a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1233    </td>
1234
1235    <td width="100%">
1236      <code>
1237      <a href="/reference/android/support/test/uiautomator/BySelector.html#textStartsWith(java.lang.String)">textStartsWith</a>(String substring)
1238      </code>
1239
1240        <p>Sets the text value criteria for matching.
1241
1242
1243</p>
1244
1245    </td>
1246  </tr>
1247
1248
1249
1250  <tr class="api apilevel-" >
1251
1252
1253    <td><code>
1254
1255
1256
1257
1258
1259        String</code>
1260    </td>
1261
1262    <td width="100%">
1263      <code>
1264      <a href="/reference/android/support/test/uiautomator/BySelector.html#toString()">toString</a>()
1265      </code>
1266
1267        <p>Returns a <code><a href="/reference/java/lang/String.html">String</a></code> representation of this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1268
1269
1270</p>
1271
1272    </td>
1273  </tr>
1274
1275
1276
1277</table>
1278
1279
1280
1281
1282
1283
1284
1285<!-- ========== METHOD SUMMARY =========== -->
1286<table id="inhmethods" class="methods inhtable">
1287<tr><th><h3>Inherited methods</h3></th></tr>
1288
1289
1290<tr class="api apilevel-" >
1291<td colspan="2">
1292
1293  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
1294          ><img height="34" id="inherited-methods-java.lang.Object-trigger"
1295          src="/assets/images/styles/disclosure_down.png"
1296          class="jd-expando-trigger-img" /></a>From
1297class
1298<code>
1299
1300    java.lang.Object
1301
1302</code>
1303<div id="inherited-methods-java.lang.Object">
1304  <div id="inherited-methods-java.lang.Object-list"
1305        class="jd-inheritedlinks">
1306  </div>
1307  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
1308    <table class="jd-sumtable-expando responsive">
1309
1310
1311
1312
1313  <tr class="api apilevel-" >
1314
1315
1316    <td><code>
1317
1318
1319
1320
1321
1322        Object</code>
1323    </td>
1324
1325    <td width="100%">
1326      <code>
1327      clone()
1328      </code>
1329
1330    </td>
1331  </tr>
1332
1333
1334
1335  <tr class="api apilevel-" >
1336
1337
1338    <td><code>
1339
1340
1341
1342
1343
1344        boolean</code>
1345    </td>
1346
1347    <td width="100%">
1348      <code>
1349      equals(Object arg0)
1350      </code>
1351
1352    </td>
1353  </tr>
1354
1355
1356
1357  <tr class="api apilevel-" >
1358
1359
1360    <td><code>
1361
1362
1363
1364
1365
1366        void</code>
1367    </td>
1368
1369    <td width="100%">
1370      <code>
1371      finalize()
1372      </code>
1373
1374    </td>
1375  </tr>
1376
1377
1378
1379  <tr class="api apilevel-" >
1380
1381
1382    <td><code>
1383
1384
1385
1386        final
1387
1388        Class&lt;?&gt;</code>
1389    </td>
1390
1391    <td width="100%">
1392      <code>
1393      getClass()
1394      </code>
1395
1396    </td>
1397  </tr>
1398
1399
1400
1401  <tr class="api apilevel-" >
1402
1403
1404    <td><code>
1405
1406
1407
1408
1409
1410        int</code>
1411    </td>
1412
1413    <td width="100%">
1414      <code>
1415      hashCode()
1416      </code>
1417
1418    </td>
1419  </tr>
1420
1421
1422
1423  <tr class="api apilevel-" >
1424
1425
1426    <td><code>
1427
1428
1429
1430        final
1431
1432        void</code>
1433    </td>
1434
1435    <td width="100%">
1436      <code>
1437      notify()
1438      </code>
1439
1440    </td>
1441  </tr>
1442
1443
1444
1445  <tr class="api apilevel-" >
1446
1447
1448    <td><code>
1449
1450
1451
1452        final
1453
1454        void</code>
1455    </td>
1456
1457    <td width="100%">
1458      <code>
1459      notifyAll()
1460      </code>
1461
1462    </td>
1463  </tr>
1464
1465
1466
1467  <tr class="api apilevel-" >
1468
1469
1470    <td><code>
1471
1472
1473
1474
1475
1476        String</code>
1477    </td>
1478
1479    <td width="100%">
1480      <code>
1481      toString()
1482      </code>
1483
1484    </td>
1485  </tr>
1486
1487
1488
1489  <tr class="api apilevel-" >
1490
1491
1492    <td><code>
1493
1494
1495
1496        final
1497
1498        void</code>
1499    </td>
1500
1501    <td width="100%">
1502      <code>
1503      wait(long arg0, int arg1)
1504      </code>
1505
1506    </td>
1507  </tr>
1508
1509
1510
1511  <tr class="api apilevel-" >
1512
1513
1514    <td><code>
1515
1516
1517
1518        final
1519
1520        void</code>
1521    </td>
1522
1523    <td width="100%">
1524      <code>
1525      wait(long arg0)
1526      </code>
1527
1528    </td>
1529  </tr>
1530
1531
1532
1533  <tr class="api apilevel-" >
1534
1535
1536    <td><code>
1537
1538
1539
1540        final
1541
1542        void</code>
1543    </td>
1544
1545    <td width="100%">
1546      <code>
1547      wait()
1548      </code>
1549
1550    </td>
1551  </tr>
1552
1553
1554
1555    </table>
1556  </div>
1557</div>
1558</td></tr>
1559
1560
1561</table>
1562
1563
1564
1565<!-- XML Attributes -->
1566
1567
1568<!-- Enum Values -->
1569
1570
1571<!-- Constants -->
1572
1573
1574<!-- Fields -->
1575
1576
1577<!-- Public ctors -->
1578
1579
1580
1581<!-- ========= CONSTRUCTOR DETAIL ======== -->
1582<!-- Protected ctors -->
1583
1584
1585
1586<!-- ========= METHOD DETAIL ======== -->
1587<!-- Public methdos -->
1588
1589<h2 class="api-section">Public methods</h2>
1590
1591
1592
1593<A NAME="checkable(boolean)"></A>
1594
1595<div class="api apilevel-">
1596    <h3 class="api-name">checkable</h3>
1597    <div class="api-level">
1598      <div></div>
1599
1600
1601
1602    </div>
1603<pre class="api-signature no-pretty-print">
1604<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> checkable (boolean isCheckable)</pre>
1605
1606
1607
1608
1609  <p>Sets the search criteria to match elements that are checkable or not checkable.</p>
1610    <table class="responsive">
1611    <tr><th colspan=2>Parameters</th></tr>
1612      <tr>
1613        <td><code>isCheckable</code></td>
1614        <td width="100%">
1615          <code>boolean</code>:
1616          Whether to match elements that are checkable or elements that are not
1617 checkable.</td>
1618      </tr>
1619    </table>
1620    <table class="responsive">
1621      <tr><th colspan=2>Returns</th></tr>
1622      <tr>
1623        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1624        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1625</td>
1626      </tr>
1627    </table>
1628
1629</div>
1630
1631
1632<A NAME="checked(boolean)"></A>
1633
1634<div class="api apilevel-">
1635    <h3 class="api-name">checked</h3>
1636    <div class="api-level">
1637      <div></div>
1638
1639
1640
1641    </div>
1642<pre class="api-signature no-pretty-print">
1643<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> checked (boolean isChecked)</pre>
1644
1645
1646
1647
1648  <p>Sets the search criteria to match elements that are checked or unchecked.</p>
1649    <table class="responsive">
1650    <tr><th colspan=2>Parameters</th></tr>
1651      <tr>
1652        <td><code>isChecked</code></td>
1653        <td width="100%">
1654          <code>boolean</code>:
1655          Whether to match elements that are checked or elements that are unchecked.</td>
1656      </tr>
1657    </table>
1658    <table class="responsive">
1659      <tr><th colspan=2>Returns</th></tr>
1660      <tr>
1661        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1662        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1663</td>
1664      </tr>
1665    </table>
1666
1667</div>
1668
1669
1670<A NAME="clazz(java.lang.String, java.lang.String)"></A>
1671
1672<div class="api apilevel-">
1673    <h3 class="api-name">clazz</h3>
1674    <div class="api-level">
1675      <div></div>
1676
1677
1678
1679    </div>
1680<pre class="api-signature no-pretty-print">
1681<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> clazz (String packageName,
1682                String className)</pre>
1683
1684
1685
1686
1687  <p>Sets the class name criteria for matching. A UI element will be considered a match if its
1688 package and class name exactly match the <code>packageName</code> and <code>className</code> parameters
1689 and all other criteria for this selector are met.</p>
1690    <table class="responsive">
1691    <tr><th colspan=2>Parameters</th></tr>
1692      <tr>
1693        <td><code>packageName</code></td>
1694        <td width="100%">
1695          <code>String</code>:
1696          The package value to match.</td>
1697      </tr>
1698      <tr>
1699        <td><code>className</code></td>
1700        <td width="100%">
1701          <code>String</code>:
1702          The class name value to match.</td>
1703      </tr>
1704    </table>
1705    <table class="responsive">
1706      <tr><th colspan=2>Returns</th></tr>
1707      <tr>
1708        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1709        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1710</td>
1711      </tr>
1712    </table>
1713
1714</div>
1715
1716
1717<A NAME="clazz(java.lang.Class)"></A>
1718
1719<div class="api apilevel-">
1720    <h3 class="api-name">clazz</h3>
1721    <div class="api-level">
1722      <div></div>
1723
1724
1725
1726    </div>
1727<pre class="api-signature no-pretty-print">
1728<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> clazz (Class clazz)</pre>
1729
1730
1731
1732
1733  <p>Sets the class name criteria for matching. A UI element will be considered a match if its
1734 class name matches <code>clazz</code> and all other criteria for this selector are met.</p>
1735    <table class="responsive">
1736    <tr><th colspan=2>Parameters</th></tr>
1737      <tr>
1738        <td><code>clazz</code></td>
1739        <td width="100%">
1740          <code>Class</code>:
1741          The class to match.</td>
1742      </tr>
1743    </table>
1744    <table class="responsive">
1745      <tr><th colspan=2>Returns</th></tr>
1746      <tr>
1747        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1748        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>
1749</td>
1750      </tr>
1751    </table>
1752
1753</div>
1754
1755
1756<A NAME="clazz(java.util.regex.Pattern)"></A>
1757
1758<div class="api apilevel-">
1759    <h3 class="api-name">clazz</h3>
1760    <div class="api-level">
1761      <div></div>
1762
1763
1764
1765    </div>
1766<pre class="api-signature no-pretty-print">
1767<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> clazz (Pattern className)</pre>
1768
1769
1770
1771
1772  <p>Sets the class name criteria for matching. A UI element will be considered a match if its
1773 full class name matches the <code>className</code> <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> and all other criteria for this
1774 selector are met.</p>
1775    <table class="responsive">
1776    <tr><th colspan=2>Parameters</th></tr>
1777      <tr>
1778        <td><code>className</code></td>
1779        <td width="100%">
1780          <code>Pattern</code>:
1781          The <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> to be used for matching.</td>
1782      </tr>
1783    </table>
1784    <table class="responsive">
1785      <tr><th colspan=2>Returns</th></tr>
1786      <tr>
1787        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1788        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1789</td>
1790      </tr>
1791    </table>
1792
1793</div>
1794
1795
1796<A NAME="clazz(java.lang.String)"></A>
1797
1798<div class="api apilevel-">
1799    <h3 class="api-name">clazz</h3>
1800    <div class="api-level">
1801      <div></div>
1802
1803
1804
1805    </div>
1806<pre class="api-signature no-pretty-print">
1807<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> clazz (String className)</pre>
1808
1809
1810
1811
1812  <p>Sets the class name criteria for matching. A UI element will be considered a match if its
1813 class name exactly matches the <code>className</code> parameter and all other criteria for
1814 this selector are met. If <code>className</code> starts with a period, it is assumed to be in the
1815 <code><a href="/reference/android/widget/package-summary.html">android.widget</a></code> package.</p>
1816    <table class="responsive">
1817    <tr><th colspan=2>Parameters</th></tr>
1818      <tr>
1819        <td><code>className</code></td>
1820        <td width="100%">
1821          <code>String</code>:
1822          The full class name value to match.</td>
1823      </tr>
1824    </table>
1825    <table class="responsive">
1826      <tr><th colspan=2>Returns</th></tr>
1827      <tr>
1828        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1829        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1830</td>
1831      </tr>
1832    </table>
1833
1834</div>
1835
1836
1837<A NAME="clickable(boolean)"></A>
1838
1839<div class="api apilevel-">
1840    <h3 class="api-name">clickable</h3>
1841    <div class="api-level">
1842      <div></div>
1843
1844
1845
1846    </div>
1847<pre class="api-signature no-pretty-print">
1848<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> clickable (boolean isClickable)</pre>
1849
1850
1851
1852
1853  <p>Sets the search criteria to match elements that are clickable or not clickable.</p>
1854    <table class="responsive">
1855    <tr><th colspan=2>Parameters</th></tr>
1856      <tr>
1857        <td><code>isClickable</code></td>
1858        <td width="100%">
1859          <code>boolean</code>:
1860          Whether to match elements that are clickable or elements that are not
1861 clickable.</td>
1862      </tr>
1863    </table>
1864    <table class="responsive">
1865      <tr><th colspan=2>Returns</th></tr>
1866      <tr>
1867        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1868        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1869</td>
1870      </tr>
1871    </table>
1872
1873</div>
1874
1875
1876<A NAME="depth(int, int)"></A>
1877
1878<div class="api apilevel-">
1879    <h3 class="api-name">depth</h3>
1880    <div class="api-level">
1881      <div></div>
1882
1883
1884
1885    </div>
1886<pre class="api-signature no-pretty-print">
1887<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> depth (int min,
1888                int max)</pre>
1889
1890
1891
1892
1893  <p>Sets the search criteria to match elements that are in a range of depths. </p>
1894    <table class="responsive">
1895    <tr><th colspan=2>Parameters</th></tr>
1896      <tr>
1897        <td><code>min</code></td>
1898        <td width="100%">
1899          <code>int</code>
1900          <!-- no parameter comment --></td>
1901      </tr>
1902      <tr>
1903        <td><code>max</code></td>
1904        <td width="100%">
1905          <code>int</code>
1906          <!-- no parameter comment --></td>
1907      </tr>
1908    </table>
1909    <table class="responsive">
1910      <tr><th colspan=2>Returns</th></tr>
1911      <tr>
1912        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1913        <td width="100%"><!-- no returns description in source --></td>
1914      </tr>
1915    </table>
1916
1917</div>
1918
1919
1920<A NAME="depth(int)"></A>
1921
1922<div class="api apilevel-">
1923    <h3 class="api-name">depth</h3>
1924    <div class="api-level">
1925      <div></div>
1926
1927
1928
1929    </div>
1930<pre class="api-signature no-pretty-print">
1931<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> depth (int exactDepth)</pre>
1932
1933
1934
1935
1936  <p>Sets the search criteria to match elements that are at a certain depth. </p>
1937    <table class="responsive">
1938    <tr><th colspan=2>Parameters</th></tr>
1939      <tr>
1940        <td><code>exactDepth</code></td>
1941        <td width="100%">
1942          <code>int</code>
1943          <!-- no parameter comment --></td>
1944      </tr>
1945    </table>
1946    <table class="responsive">
1947      <tr><th colspan=2>Returns</th></tr>
1948      <tr>
1949        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1950        <td width="100%"><!-- no returns description in source --></td>
1951      </tr>
1952    </table>
1953
1954</div>
1955
1956
1957<A NAME="desc(java.lang.String)"></A>
1958
1959<div class="api apilevel-">
1960    <h3 class="api-name">desc</h3>
1961    <div class="api-level">
1962      <div></div>
1963
1964
1965
1966    </div>
1967<pre class="api-signature no-pretty-print">
1968<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> desc (String contentDescription)</pre>
1969
1970
1971
1972
1973  <p>Sets the content description criteria for matching. A UI element will be considered a match
1974 if its content description exactly matches the <code>contentDescription</code> parameter and all
1975 other criteria for this selector are met.</p>
1976    <table class="responsive">
1977    <tr><th colspan=2>Parameters</th></tr>
1978      <tr>
1979        <td><code>contentDescription</code></td>
1980        <td width="100%">
1981          <code>String</code>:
1982          The exact value to match.</td>
1983      </tr>
1984    </table>
1985    <table class="responsive">
1986      <tr><th colspan=2>Returns</th></tr>
1987      <tr>
1988        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
1989        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
1990</td>
1991      </tr>
1992    </table>
1993
1994</div>
1995
1996
1997<A NAME="desc(java.util.regex.Pattern)"></A>
1998
1999<div class="api apilevel-">
2000    <h3 class="api-name">desc</h3>
2001    <div class="api-level">
2002      <div></div>
2003
2004
2005
2006    </div>
2007<pre class="api-signature no-pretty-print">
2008<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> desc (Pattern contentDescription)</pre>
2009
2010
2011
2012
2013  <p>Sets the content description criteria for matching. A UI element will be considered a match
2014 if its content description matches the <code>contentDescription</code> <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> and all
2015 other criteria for this selector are met.</p>
2016    <table class="responsive">
2017    <tr><th colspan=2>Parameters</th></tr>
2018      <tr>
2019        <td><code>contentDescription</code></td>
2020        <td width="100%">
2021          <code>Pattern</code>:
2022          The <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> to be used for matching.</td>
2023      </tr>
2024    </table>
2025    <table class="responsive">
2026      <tr><th colspan=2>Returns</th></tr>
2027      <tr>
2028        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2029        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2030</td>
2031      </tr>
2032    </table>
2033
2034</div>
2035
2036
2037<A NAME="descContains(java.lang.String)"></A>
2038
2039<div class="api apilevel-">
2040    <h3 class="api-name">descContains</h3>
2041    <div class="api-level">
2042      <div></div>
2043
2044
2045
2046    </div>
2047<pre class="api-signature no-pretty-print">
2048<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> descContains (String substring)</pre>
2049
2050
2051
2052
2053  <p>Sets the content description criteria for matching. A UI element will be considered a match
2054 if its content description contains the <code>substring</code> parameter and all other criteria
2055 for this selector are met.</p>
2056    <table class="responsive">
2057    <tr><th colspan=2>Parameters</th></tr>
2058      <tr>
2059        <td><code>substring</code></td>
2060        <td width="100%">
2061          <code>String</code>:
2062          The substring to match.</td>
2063      </tr>
2064    </table>
2065    <table class="responsive">
2066      <tr><th colspan=2>Returns</th></tr>
2067      <tr>
2068        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2069        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2070</td>
2071      </tr>
2072    </table>
2073
2074</div>
2075
2076
2077<A NAME="descEndsWith(java.lang.String)"></A>
2078
2079<div class="api apilevel-">
2080    <h3 class="api-name">descEndsWith</h3>
2081    <div class="api-level">
2082      <div></div>
2083
2084
2085
2086    </div>
2087<pre class="api-signature no-pretty-print">
2088<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> descEndsWith (String substring)</pre>
2089
2090
2091
2092
2093  <p>Sets the content description criteria for matching. A UI element will be considered a match
2094 if its content description ends with the <code>substring</code> parameter and all other criteria
2095 for this selector are met.</p>
2096    <table class="responsive">
2097    <tr><th colspan=2>Parameters</th></tr>
2098      <tr>
2099        <td><code>substring</code></td>
2100        <td width="100%">
2101          <code>String</code>:
2102          The substring to match.</td>
2103      </tr>
2104    </table>
2105    <table class="responsive">
2106      <tr><th colspan=2>Returns</th></tr>
2107      <tr>
2108        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2109        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2110</td>
2111      </tr>
2112    </table>
2113
2114</div>
2115
2116
2117<A NAME="descStartsWith(java.lang.String)"></A>
2118
2119<div class="api apilevel-">
2120    <h3 class="api-name">descStartsWith</h3>
2121    <div class="api-level">
2122      <div></div>
2123
2124
2125
2126    </div>
2127<pre class="api-signature no-pretty-print">
2128<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> descStartsWith (String substring)</pre>
2129
2130
2131
2132
2133  <p>Sets the content description criteria for matching. A UI element will be considered a match
2134 if its content description starts with the <code>substring</code> parameter and all other criteria
2135 for this selector are met.</p>
2136    <table class="responsive">
2137    <tr><th colspan=2>Parameters</th></tr>
2138      <tr>
2139        <td><code>substring</code></td>
2140        <td width="100%">
2141          <code>String</code>:
2142          The substring to match.</td>
2143      </tr>
2144    </table>
2145    <table class="responsive">
2146      <tr><th colspan=2>Returns</th></tr>
2147      <tr>
2148        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2149        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2150</td>
2151      </tr>
2152    </table>
2153
2154</div>
2155
2156
2157<A NAME="enabled(boolean)"></A>
2158
2159<div class="api apilevel-">
2160    <h3 class="api-name">enabled</h3>
2161    <div class="api-level">
2162      <div></div>
2163
2164
2165
2166    </div>
2167<pre class="api-signature no-pretty-print">
2168<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> enabled (boolean isEnabled)</pre>
2169
2170
2171
2172
2173  <p>Sets the search criteria to match elements that are enabled or disabled.</p>
2174    <table class="responsive">
2175    <tr><th colspan=2>Parameters</th></tr>
2176      <tr>
2177        <td><code>isEnabled</code></td>
2178        <td width="100%">
2179          <code>boolean</code>:
2180          Whether to match elements that are enabled or elements that are disabled.</td>
2181      </tr>
2182    </table>
2183    <table class="responsive">
2184      <tr><th colspan=2>Returns</th></tr>
2185      <tr>
2186        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2187        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2188</td>
2189      </tr>
2190    </table>
2191
2192</div>
2193
2194
2195<A NAME="focusable(boolean)"></A>
2196
2197<div class="api apilevel-">
2198    <h3 class="api-name">focusable</h3>
2199    <div class="api-level">
2200      <div></div>
2201
2202
2203
2204    </div>
2205<pre class="api-signature no-pretty-print">
2206<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> focusable (boolean isFocusable)</pre>
2207
2208
2209
2210
2211  <p>Sets the search criteria to match elements that are focusable or not focusable.</p>
2212    <table class="responsive">
2213    <tr><th colspan=2>Parameters</th></tr>
2214      <tr>
2215        <td><code>isFocusable</code></td>
2216        <td width="100%">
2217          <code>boolean</code>:
2218          Whether to match elements that are focusable or elements that are not
2219 focusable.</td>
2220      </tr>
2221    </table>
2222    <table class="responsive">
2223      <tr><th colspan=2>Returns</th></tr>
2224      <tr>
2225        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2226        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2227</td>
2228      </tr>
2229    </table>
2230
2231</div>
2232
2233
2234<A NAME="focused(boolean)"></A>
2235
2236<div class="api apilevel-">
2237    <h3 class="api-name">focused</h3>
2238    <div class="api-level">
2239      <div></div>
2240
2241
2242
2243    </div>
2244<pre class="api-signature no-pretty-print">
2245<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> focused (boolean isFocused)</pre>
2246
2247
2248
2249
2250  <p>Sets the search criteria to match elements that are focused or unfocused.</p>
2251    <table class="responsive">
2252    <tr><th colspan=2>Parameters</th></tr>
2253      <tr>
2254        <td><code>isFocused</code></td>
2255        <td width="100%">
2256          <code>boolean</code>:
2257          Whether to match elements that are focused or elements that are unfocused.</td>
2258      </tr>
2259    </table>
2260    <table class="responsive">
2261      <tr><th colspan=2>Returns</th></tr>
2262      <tr>
2263        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2264        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2265</td>
2266      </tr>
2267    </table>
2268
2269</div>
2270
2271
2272<A NAME="hasChild(android.support.test.uiautomator.BySelector)"></A>
2273
2274<div class="api apilevel-">
2275    <h3 class="api-name">hasChild</h3>
2276    <div class="api-level">
2277      <div></div>
2278
2279
2280
2281    </div>
2282<pre class="api-signature no-pretty-print">
2283<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> hasChild (<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> childSelector)</pre>
2284
2285
2286
2287
2288  <p>Adds a child selector criteria for matching. A UI element will be considered a match if it
2289 has a child element (direct descendant) which matches the <code>childSelector</code> and all
2290 other criteria for this selector are met. If specified more than once, matches must be found
2291 for all <code>childSelector</code>s.</p>
2292    <table class="responsive">
2293    <tr><th colspan=2>Parameters</th></tr>
2294      <tr>
2295        <td><code>childSelector</code></td>
2296        <td width="100%">
2297          <code>BySelector</code>:
2298          The selector used to find a matching child element.</td>
2299      </tr>
2300    </table>
2301    <table class="responsive">
2302      <tr><th colspan=2>Returns</th></tr>
2303      <tr>
2304        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2305        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2306</td>
2307      </tr>
2308    </table>
2309
2310</div>
2311
2312
2313<A NAME="hasDescendant(android.support.test.uiautomator.BySelector)"></A>
2314
2315<div class="api apilevel-">
2316    <h3 class="api-name">hasDescendant</h3>
2317    <div class="api-level">
2318      <div></div>
2319
2320
2321
2322    </div>
2323<pre class="api-signature no-pretty-print">
2324<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> hasDescendant (<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> descendantSelector)</pre>
2325
2326
2327
2328
2329  <p>Adds a descendant selector criteria for matching. A UI element will be considered a match if
2330 it has a descendant element which matches the <code>descendantSelector</code> and all other
2331 criteria for this selector are met. If specified more than once, matches must be found for
2332 all <code>descendantSelector</code>s.</p>
2333    <table class="responsive">
2334    <tr><th colspan=2>Parameters</th></tr>
2335      <tr>
2336        <td><code>descendantSelector</code></td>
2337        <td width="100%">
2338          <code>BySelector</code>:
2339          The selector used to find a matching descendant element.</td>
2340      </tr>
2341    </table>
2342    <table class="responsive">
2343      <tr><th colspan=2>Returns</th></tr>
2344      <tr>
2345        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2346        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2347</td>
2348      </tr>
2349    </table>
2350
2351</div>
2352
2353
2354<A NAME="hasDescendant(android.support.test.uiautomator.BySelector, int)"></A>
2355
2356<div class="api apilevel-">
2357    <h3 class="api-name">hasDescendant</h3>
2358    <div class="api-level">
2359      <div></div>
2360
2361
2362
2363    </div>
2364<pre class="api-signature no-pretty-print">
2365<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> hasDescendant (<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> descendantSelector,
2366                int maxDepth)</pre>
2367
2368
2369
2370
2371  <p>Adds a descendant selector criteria for matching. A UI element will be considered a match if
2372 it has a descendant element which matches the <code>descendantSelector</code> and all other
2373 criteria for this selector are met. If specified more than once, matches must be found for
2374 all <code>descendantSelector</code>s.</p>
2375    <table class="responsive">
2376    <tr><th colspan=2>Parameters</th></tr>
2377      <tr>
2378        <td><code>descendantSelector</code></td>
2379        <td width="100%">
2380          <code>BySelector</code>:
2381          The selector used to find a matching descendant element.</td>
2382      </tr>
2383      <tr>
2384        <td><code>maxDepth</code></td>
2385        <td width="100%">
2386          <code>int</code>:
2387          The maximum depth under the element to search the descendant.</td>
2388      </tr>
2389    </table>
2390    <table class="responsive">
2391      <tr><th colspan=2>Returns</th></tr>
2392      <tr>
2393        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2394        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2395</td>
2396      </tr>
2397    </table>
2398
2399</div>
2400
2401
2402<A NAME="longClickable(boolean)"></A>
2403
2404<div class="api apilevel-">
2405    <h3 class="api-name">longClickable</h3>
2406    <div class="api-level">
2407      <div></div>
2408
2409
2410
2411    </div>
2412<pre class="api-signature no-pretty-print">
2413<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> longClickable (boolean isLongClickable)</pre>
2414
2415
2416
2417
2418  <p>Sets the search criteria to match elements that are long clickable or not long clickable.</p>
2419    <table class="responsive">
2420    <tr><th colspan=2>Parameters</th></tr>
2421      <tr>
2422        <td><code>isLongClickable</code></td>
2423        <td width="100%">
2424          <code>boolean</code>:
2425          Whether to match elements that are long clickable or elements that are
2426 not long clickable.</td>
2427      </tr>
2428    </table>
2429    <table class="responsive">
2430      <tr><th colspan=2>Returns</th></tr>
2431      <tr>
2432        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2433        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2434</td>
2435      </tr>
2436    </table>
2437
2438</div>
2439
2440
2441<A NAME="maxDepth(int)"></A>
2442
2443<div class="api apilevel-">
2444    <h3 class="api-name">maxDepth</h3>
2445    <div class="api-level">
2446      <div></div>
2447
2448
2449
2450    </div>
2451<pre class="api-signature no-pretty-print">
2452<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> maxDepth (int max)</pre>
2453
2454
2455
2456
2457  <p>Sets the search criteria to match elements that are no more than a certain depth. </p>
2458    <table class="responsive">
2459    <tr><th colspan=2>Parameters</th></tr>
2460      <tr>
2461        <td><code>max</code></td>
2462        <td width="100%">
2463          <code>int</code>
2464          <!-- no parameter comment --></td>
2465      </tr>
2466    </table>
2467    <table class="responsive">
2468      <tr><th colspan=2>Returns</th></tr>
2469      <tr>
2470        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2471        <td width="100%"><!-- no returns description in source --></td>
2472      </tr>
2473    </table>
2474
2475</div>
2476
2477
2478<A NAME="minDepth(int)"></A>
2479
2480<div class="api apilevel-">
2481    <h3 class="api-name">minDepth</h3>
2482    <div class="api-level">
2483      <div></div>
2484
2485
2486
2487    </div>
2488<pre class="api-signature no-pretty-print">
2489<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> minDepth (int min)</pre>
2490
2491
2492
2493
2494  <p>Sets the search criteria to match elements that are at least a certain depth. </p>
2495    <table class="responsive">
2496    <tr><th colspan=2>Parameters</th></tr>
2497      <tr>
2498        <td><code>min</code></td>
2499        <td width="100%">
2500          <code>int</code>
2501          <!-- no parameter comment --></td>
2502      </tr>
2503    </table>
2504    <table class="responsive">
2505      <tr><th colspan=2>Returns</th></tr>
2506      <tr>
2507        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2508        <td width="100%"><!-- no returns description in source --></td>
2509      </tr>
2510    </table>
2511
2512</div>
2513
2514
2515<A NAME="pkg(java.util.regex.Pattern)"></A>
2516
2517<div class="api apilevel-">
2518    <h3 class="api-name">pkg</h3>
2519    <div class="api-level">
2520      <div></div>
2521
2522
2523
2524    </div>
2525<pre class="api-signature no-pretty-print">
2526<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> pkg (Pattern applicationPackage)</pre>
2527
2528
2529
2530
2531  <p>Sets the package name criteria for matching. A UI element will be considered a match if its
2532 application package name matches the <code>applicationPackage</code> <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> and all other
2533 criteria for this selector are met.</p>
2534    <table class="responsive">
2535    <tr><th colspan=2>Parameters</th></tr>
2536      <tr>
2537        <td><code>applicationPackage</code></td>
2538        <td width="100%">
2539          <code>Pattern</code>:
2540          The <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> to be used for matching.</td>
2541      </tr>
2542    </table>
2543    <table class="responsive">
2544      <tr><th colspan=2>Returns</th></tr>
2545      <tr>
2546        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2547        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2548</td>
2549      </tr>
2550    </table>
2551
2552</div>
2553
2554
2555<A NAME="pkg(java.lang.String)"></A>
2556
2557<div class="api apilevel-">
2558    <h3 class="api-name">pkg</h3>
2559    <div class="api-level">
2560      <div></div>
2561
2562
2563
2564    </div>
2565<pre class="api-signature no-pretty-print">
2566<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> pkg (String applicationPackage)</pre>
2567
2568
2569
2570
2571  <p>Sets the application package name criteria for matching. A UI element will be considered a
2572 match if its application package name exactly matches the <code>applicationPackage</code>
2573 parameter and all other criteria for this selector are met.</p>
2574    <table class="responsive">
2575    <tr><th colspan=2>Parameters</th></tr>
2576      <tr>
2577        <td><code>applicationPackage</code></td>
2578        <td width="100%">
2579          <code>String</code>:
2580          The exact value to match.</td>
2581      </tr>
2582    </table>
2583    <table class="responsive">
2584      <tr><th colspan=2>Returns</th></tr>
2585      <tr>
2586        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2587        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2588</td>
2589      </tr>
2590    </table>
2591
2592</div>
2593
2594
2595<A NAME="res(java.lang.String)"></A>
2596
2597<div class="api apilevel-">
2598    <h3 class="api-name">res</h3>
2599    <div class="api-level">
2600      <div></div>
2601
2602
2603
2604    </div>
2605<pre class="api-signature no-pretty-print">
2606<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> res (String resourceName)</pre>
2607
2608
2609
2610
2611  <p>Sets the resource name criteria for matching. A UI element will be considered a match if its
2612 resource name exactly matches the <code>resourceName</code> parameter and all other criteria for
2613 this selector are met.</p>
2614    <table class="responsive">
2615    <tr><th colspan=2>Parameters</th></tr>
2616      <tr>
2617        <td><code>resourceName</code></td>
2618        <td width="100%">
2619          <code>String</code>:
2620          The exact value to match.</td>
2621      </tr>
2622    </table>
2623    <table class="responsive">
2624      <tr><th colspan=2>Returns</th></tr>
2625      <tr>
2626        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2627        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2628</td>
2629      </tr>
2630    </table>
2631
2632</div>
2633
2634
2635<A NAME="res(java.lang.String, java.lang.String)"></A>
2636
2637<div class="api apilevel-">
2638    <h3 class="api-name">res</h3>
2639    <div class="api-level">
2640      <div></div>
2641
2642
2643
2644    </div>
2645<pre class="api-signature no-pretty-print">
2646<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> res (String resourcePackage,
2647                String resourceId)</pre>
2648
2649
2650
2651
2652  <p>Sets the resource name criteria for matching. A UI element will be considered a match if its
2653 resource package and resource id exactly match the <code>resourcePackage</code> and
2654 <code>resourceId</code> parameters and all other criteria for this selector are met.</p>
2655    <table class="responsive">
2656    <tr><th colspan=2>Parameters</th></tr>
2657      <tr>
2658        <td><code>resourcePackage</code></td>
2659        <td width="100%">
2660          <code>String</code>:
2661          The resource package value to match.</td>
2662      </tr>
2663      <tr>
2664        <td><code>resourceId</code></td>
2665        <td width="100%">
2666          <code>String</code>:
2667          The resouce-id value to match.</td>
2668      </tr>
2669    </table>
2670    <table class="responsive">
2671      <tr><th colspan=2>Returns</th></tr>
2672      <tr>
2673        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2674        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2675</td>
2676      </tr>
2677    </table>
2678
2679</div>
2680
2681
2682<A NAME="res(java.util.regex.Pattern)"></A>
2683
2684<div class="api apilevel-">
2685    <h3 class="api-name">res</h3>
2686    <div class="api-level">
2687      <div></div>
2688
2689
2690
2691    </div>
2692<pre class="api-signature no-pretty-print">
2693<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> res (Pattern resourceName)</pre>
2694
2695
2696
2697
2698  <p>Sets the resource name criteria for matching. A UI element will be considered a match if its
2699 resource name matches the <code>resourceName</code> <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> and all other criteria for
2700 this selector are met.</p>
2701    <table class="responsive">
2702    <tr><th colspan=2>Parameters</th></tr>
2703      <tr>
2704        <td><code>resourceName</code></td>
2705        <td width="100%">
2706          <code>Pattern</code>:
2707          The <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> to be used for matching.</td>
2708      </tr>
2709    </table>
2710    <table class="responsive">
2711      <tr><th colspan=2>Returns</th></tr>
2712      <tr>
2713        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2714        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2715</td>
2716      </tr>
2717    </table>
2718
2719</div>
2720
2721
2722<A NAME="scrollable(boolean)"></A>
2723
2724<div class="api apilevel-">
2725    <h3 class="api-name">scrollable</h3>
2726    <div class="api-level">
2727      <div></div>
2728
2729
2730
2731    </div>
2732<pre class="api-signature no-pretty-print">
2733<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> scrollable (boolean isScrollable)</pre>
2734
2735
2736
2737
2738  <p>Sets the search criteria to match elements that are scrollable or not scrollable.</p>
2739    <table class="responsive">
2740    <tr><th colspan=2>Parameters</th></tr>
2741      <tr>
2742        <td><code>isScrollable</code></td>
2743        <td width="100%">
2744          <code>boolean</code>:
2745          Whether to match elements that are scrollable or elements that are not
2746 scrollable.</td>
2747      </tr>
2748    </table>
2749    <table class="responsive">
2750      <tr><th colspan=2>Returns</th></tr>
2751      <tr>
2752        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2753        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2754</td>
2755      </tr>
2756    </table>
2757
2758</div>
2759
2760
2761<A NAME="selected(boolean)"></A>
2762
2763<div class="api apilevel-">
2764    <h3 class="api-name">selected</h3>
2765    <div class="api-level">
2766      <div></div>
2767
2768
2769
2770    </div>
2771<pre class="api-signature no-pretty-print">
2772<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selected (boolean isSelected)</pre>
2773
2774
2775
2776
2777  <p>Sets the search criteria to match elements that are selected or not selected.</p>
2778    <table class="responsive">
2779    <tr><th colspan=2>Parameters</th></tr>
2780      <tr>
2781        <td><code>isSelected</code></td>
2782        <td width="100%">
2783          <code>boolean</code>:
2784          Whether to match elements that are selected or elements that are not
2785 selected.</td>
2786      </tr>
2787    </table>
2788    <table class="responsive">
2789      <tr><th colspan=2>Returns</th></tr>
2790      <tr>
2791        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2792        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2793</td>
2794      </tr>
2795    </table>
2796
2797</div>
2798
2799
2800<A NAME="text(java.util.regex.Pattern)"></A>
2801
2802<div class="api apilevel-">
2803    <h3 class="api-name">text</h3>
2804    <div class="api-level">
2805      <div></div>
2806
2807
2808
2809    </div>
2810<pre class="api-signature no-pretty-print">
2811<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> text (Pattern textValue)</pre>
2812
2813
2814
2815
2816  <p>Sets the text value criteria for matching. A UI element will be considered a match if its
2817 text value matches the <code>textValue</code> <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> and all other criteria for this
2818 selector are met.</p>
2819    <table class="responsive">
2820    <tr><th colspan=2>Parameters</th></tr>
2821      <tr>
2822        <td><code>textValue</code></td>
2823        <td width="100%">
2824          <code>Pattern</code>:
2825          The <code><a href="/reference/java/util/regex/Pattern.html">Pattern</a></code> to be used for matching.</td>
2826      </tr>
2827    </table>
2828    <table class="responsive">
2829      <tr><th colspan=2>Returns</th></tr>
2830      <tr>
2831        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2832        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2833</td>
2834      </tr>
2835    </table>
2836
2837</div>
2838
2839
2840<A NAME="text(java.lang.String)"></A>
2841
2842<div class="api apilevel-">
2843    <h3 class="api-name">text</h3>
2844    <div class="api-level">
2845      <div></div>
2846
2847
2848
2849    </div>
2850<pre class="api-signature no-pretty-print">
2851<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> text (String textValue)</pre>
2852
2853
2854
2855
2856  <p>Sets the text value criteria for matching. A UI element will be considered a match if its
2857 text value exactly matches the <code>textValue</code> parameter and all other criteria for this
2858 selector are met.</p>
2859    <table class="responsive">
2860    <tr><th colspan=2>Parameters</th></tr>
2861      <tr>
2862        <td><code>textValue</code></td>
2863        <td width="100%">
2864          <code>String</code>:
2865          The exact value to match.</td>
2866      </tr>
2867    </table>
2868    <table class="responsive">
2869      <tr><th colspan=2>Returns</th></tr>
2870      <tr>
2871        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2872        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2873</td>
2874      </tr>
2875    </table>
2876
2877</div>
2878
2879
2880<A NAME="textContains(java.lang.String)"></A>
2881
2882<div class="api apilevel-">
2883    <h3 class="api-name">textContains</h3>
2884    <div class="api-level">
2885      <div></div>
2886
2887
2888
2889    </div>
2890<pre class="api-signature no-pretty-print">
2891<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> textContains (String substring)</pre>
2892
2893
2894
2895
2896  <p>Sets the text value criteria for matching. A UI element will be considered a match if its
2897 text value contains the <code>substring</code> parameter and all other criteria for this selector
2898 are met.</p>
2899    <table class="responsive">
2900    <tr><th colspan=2>Parameters</th></tr>
2901      <tr>
2902        <td><code>substring</code></td>
2903        <td width="100%">
2904          <code>String</code>:
2905          The substring to match.</td>
2906      </tr>
2907    </table>
2908    <table class="responsive">
2909      <tr><th colspan=2>Returns</th></tr>
2910      <tr>
2911        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2912        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2913</td>
2914      </tr>
2915    </table>
2916
2917</div>
2918
2919
2920<A NAME="textEndsWith(java.lang.String)"></A>
2921
2922<div class="api apilevel-">
2923    <h3 class="api-name">textEndsWith</h3>
2924    <div class="api-level">
2925      <div></div>
2926
2927
2928
2929    </div>
2930<pre class="api-signature no-pretty-print">
2931<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> textEndsWith (String substring)</pre>
2932
2933
2934
2935
2936  <p>Sets the text value criteria for matching. A UI element will be considered a match if its
2937 text value ends with the <code>substring</code> parameter and all other criteria for this selector
2938 are met.</p>
2939    <table class="responsive">
2940    <tr><th colspan=2>Parameters</th></tr>
2941      <tr>
2942        <td><code>substring</code></td>
2943        <td width="100%">
2944          <code>String</code>:
2945          The substring to match.</td>
2946      </tr>
2947    </table>
2948    <table class="responsive">
2949      <tr><th colspan=2>Returns</th></tr>
2950      <tr>
2951        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2952        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2953</td>
2954      </tr>
2955    </table>
2956
2957</div>
2958
2959
2960<A NAME="textStartsWith(java.lang.String)"></A>
2961
2962<div class="api apilevel-">
2963    <h3 class="api-name">textStartsWith</h3>
2964    <div class="api-level">
2965      <div></div>
2966
2967
2968
2969    </div>
2970<pre class="api-signature no-pretty-print">
2971<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> textStartsWith (String substring)</pre>
2972
2973
2974
2975
2976  <p>Sets the text value criteria for matching. A UI element will be considered a match if its
2977 text value starts with the <code>substring</code> parameter and all other criteria for this
2978 selector are met.</p>
2979    <table class="responsive">
2980    <tr><th colspan=2>Parameters</th></tr>
2981      <tr>
2982        <td><code>substring</code></td>
2983        <td width="100%">
2984          <code>String</code>:
2985          The substring to match.</td>
2986      </tr>
2987    </table>
2988    <table class="responsive">
2989      <tr><th colspan=2>Returns</th></tr>
2990      <tr>
2991        <td><code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code></td>
2992        <td width="100%">A reference to this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>.
2993</td>
2994      </tr>
2995    </table>
2996
2997</div>
2998
2999
3000<A NAME="toString()"></A>
3001
3002<div class="api apilevel-">
3003    <h3 class="api-name">toString</h3>
3004    <div class="api-level">
3005      <div></div>
3006
3007
3008
3009    </div>
3010<pre class="api-signature no-pretty-print">
3011String toString ()</pre>
3012
3013
3014
3015
3016  <p>Returns a <code><a href="/reference/java/lang/String.html">String</a></code> representation of this <code><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></code>. The format is
3017 "BySelector [&lt;KEY&gt;='&lt;VALUE&gt; ... ]". Each criteria is listed as a key-value pair
3018 where the key is the name of the criteria expressed in all caps (e.g. CLAZZ, RES, etc).
3019</p>
3020    <table class="responsive">
3021      <tr><th colspan=2>Returns</th></tr>
3022      <tr>
3023        <td><code>String</code></td>
3024        <td width="100%"><!-- no returns description in source --></td>
3025      </tr>
3026    </table>
3027
3028</div>
3029
3030
3031
3032
3033
3034<!-- ========= METHOD DETAIL ======== -->
3035
3036
3037
3038<!-- ========= END OF CLASS DATA ========= -->
3039
3040</div><!-- end jd-content -->
3041
3042
3043
3044<div class="data-reference-resources-wrapper">
3045
3046  <ul data-reference-resources>
3047
3048
3049    <li><h2>Interfaces</h2>
3050      <ul>
3051          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/IAutomationSupport.html">IAutomationSupport</a></li>
3052          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiWatcher.html">UiWatcher</a></li>
3053      </ul>
3054    </li>
3055
3056    <li><h2>Classes</h2>
3057      <ul>
3058          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/By.html">By</a></li>
3059          <li class="selected api apilevel-"><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></li>
3060          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/Configurator.html">Configurator</a></li>
3061          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a></li>
3062          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></li>
3063          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiAutomatorInstrumentationTestRunner.html">UiAutomatorInstrumentationTestRunner</a></li>
3064          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiAutomatorTestCase.html">UiAutomatorTestCase</a></li>
3065          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></li>
3066          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiDevice.html">UiDevice</a></li>
3067          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObject.html">UiObject</a></li>
3068          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></li>
3069          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a></li>
3070          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></li>
3071          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></li>
3072          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/Until.html">Until</a></li>
3073      </ul>
3074    </li>
3075
3076    <li><h2>Enums</h2>
3077      <ul>
3078          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/Direction.html">Direction</a></li>
3079      </ul>
3080    </li>
3081
3082    <li><h2>Exceptions</h2>
3083      <ul>
3084          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/StaleObjectException.html">StaleObjectException</a></li>
3085          <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></li>
3086      </ul>
3087    </li>
3088
3089  </ul>
3090
3091</div>
3092
3093
3094
3095</body>
3096</html>
3097