Home | History | Annotate | Download | only in uiautomator
      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>Until</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 
    178 Summary:
    179 
    180 
    181 
    182 
    183 
    184 
    185 
    186 
    187 
    188   <a href="#pubctors">Ctors</a>
    189   
    190 
    191 
    192 
    193   &#124; <a href="#pubmethods">Methods</a>
    194   
    195 
    196 
    197 
    198   &#124; <a href="#inhmethods">Inherited Methods</a>
    199 
    200 &#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
    201 
    202 </div><!-- end sum-details-links -->
    203 </div><!-- end api-info-block -->
    204 
    205 <div class="api apilevel-" id="jd-content">
    206 
    207 <!-- ======== START OF CLASS DATA ======== -->
    208 
    209 <h1 class="api-title">Until</h1>
    210 <p>
    211 <code class="api-signature">
    212   public
    213   
    214   
    215   
    216   class
    217   Until
    218 </code>
    219 <br>
    220 
    221 
    222 <code class="api-signature">
    223   
    224     extends Object
    225   
    226   
    227   
    228 </code>
    229 
    230 <code class="api-signature">
    231   
    232   
    233   
    234 </code>
    235 
    236 </p><table class="jd-inheritance-table">
    237 
    238 
    239   <tr>
    240     
    241     <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object
    242     </td>
    243   </tr>
    244   
    245 
    246   <tr>
    247     
    248       <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    249     
    250     <td colspan="1" class="jd-inheritance-class-cell">android.support.test.uiautomator.Until
    251     </td>
    252   </tr>
    253   
    254 
    255 </table>
    256   
    257 
    258     
    259 
    260 <br><hr>
    261 
    262 
    263   <p>The <code><a href="/reference/android/support/test/uiautomator/Until.html">Until</a></code> class provides factory methods for constructing common conditions.
    264 </p>
    265 
    266 
    267 
    268 
    269 
    270 
    271 
    272 <h2 class="api-section">Summary</h2>
    273 
    274 
    275 
    276 
    277 
    278 
    279 
    280 
    281 
    282 
    283 
    284 
    285 
    286 
    287 
    288 
    289 
    290 
    291 
    292 
    293 
    294 
    295 
    296 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
    297 <table id="pubctors" class="responsive constructors">
    298 <tr><th colspan="2"><h3>Public constructors</h3></th></tr>
    299 
    300 
    301 
    302   
    303   <tr class="api apilevel-" >
    304   
    305   
    306     <td width="100%">
    307       <code>
    308       <a href="/reference/android/support/test/uiautomator/Until.html#Until()">Until</a>()
    309       </code>
    310       
    311     </td>
    312   </tr>
    313   
    314 
    315 
    316 </table>
    317 
    318 
    319 
    320 
    321 
    322 
    323 <!-- ========== METHOD SUMMARY =========== -->
    324 <table id="pubmethods" class="responsive methods">
    325 <tr><th colspan="2"><h3>Public methods</h3></th></tr>
    326 
    327 
    328 
    329   
    330   <tr class="api apilevel-" >
    331   
    332   
    333     <td><code>
    334         
    335         
    336         static
    337         
    338         
    339         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    340     </td>
    341   
    342     <td width="100%">
    343       <code>
    344       <a href="/reference/android/support/test/uiautomator/Until.html#checkable(boolean)">checkable</a>(boolean isCheckable)
    345       </code>
    346       
    347         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s checkable state.
    348         
    349     
    350 </p>
    351       
    352     </td>
    353   </tr>
    354   
    355 
    356   
    357   <tr class="api apilevel-" >
    358   
    359   
    360     <td><code>
    361         
    362         
    363         static
    364         
    365         
    366         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    367     </td>
    368   
    369     <td width="100%">
    370       <code>
    371       <a href="/reference/android/support/test/uiautomator/Until.html#checked(boolean)">checked</a>(boolean isChecked)
    372       </code>
    373       
    374         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s checked state.
    375         
    376     
    377 </p>
    378       
    379     </td>
    380   </tr>
    381   
    382 
    383   
    384   <tr class="api apilevel-" >
    385   
    386   
    387     <td><code>
    388         
    389         
    390         static
    391         
    392         
    393         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    394     </td>
    395   
    396     <td width="100%">
    397       <code>
    398       <a href="/reference/android/support/test/uiautomator/Until.html#clickable(boolean)">clickable</a>(boolean isClickable)
    399       </code>
    400       
    401         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s clickable state.
    402         
    403     
    404 </p>
    405       
    406     </td>
    407   </tr>
    408   
    409 
    410   
    411   <tr class="api apilevel-" >
    412   
    413   
    414     <td><code>
    415         
    416         
    417         static
    418         
    419         
    420         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    421     </td>
    422   
    423     <td width="100%">
    424       <code>
    425       <a href="/reference/android/support/test/uiautomator/Until.html#descContains(java.lang.String)">descContains</a>(String substring)
    426       </code>
    427       
    428         <p>Returns a condition that is satisfied when the object's content description contains the
    429  given string.
    430         
    431     
    432 </p>
    433       
    434     </td>
    435   </tr>
    436   
    437 
    438   
    439   <tr class="api apilevel-" >
    440   
    441   
    442     <td><code>
    443         
    444         
    445         static
    446         
    447         
    448         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    449     </td>
    450   
    451     <td width="100%">
    452       <code>
    453       <a href="/reference/android/support/test/uiautomator/Until.html#descEndsWith(java.lang.String)">descEndsWith</a>(String substring)
    454       </code>
    455       
    456         <p>Returns a condition that is satisfied when the object's content description ends with the
    457  given string.
    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         static
    474         
    475         
    476         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    477     </td>
    478   
    479     <td width="100%">
    480       <code>
    481       <a href="/reference/android/support/test/uiautomator/Until.html#descEquals(java.lang.String)">descEquals</a>(String contentDescription)
    482       </code>
    483       
    484         <p>Returns a condition that is satisfied when the object's content description exactly matches
    485  the given string.
    486         
    487     
    488 </p>
    489       
    490     </td>
    491   </tr>
    492   
    493 
    494   
    495   <tr class="api apilevel-" >
    496   
    497   
    498     <td><code>
    499         
    500         
    501         static
    502         
    503         
    504         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    505     </td>
    506   
    507     <td width="100%">
    508       <code>
    509       <a href="/reference/android/support/test/uiautomator/Until.html#descMatches(java.lang.String)">descMatches</a>(String regex)
    510       </code>
    511       
    512         <p>Returns a condition that is satisfied when the object's content description matches the given
    513  regex.
    514         
    515     
    516 </p>
    517       
    518     </td>
    519   </tr>
    520   
    521 
    522   
    523   <tr class="api apilevel-" >
    524   
    525   
    526     <td><code>
    527         
    528         
    529         static
    530         
    531         
    532         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    533     </td>
    534   
    535     <td width="100%">
    536       <code>
    537       <a href="/reference/android/support/test/uiautomator/Until.html#descMatches(java.util.regex.Pattern)">descMatches</a>(Pattern regex)
    538       </code>
    539       
    540         <p>Returns a condition that is satisfied when the object's content description matches the given
    541  regex.
    542         
    543     
    544 </p>
    545       
    546     </td>
    547   </tr>
    548   
    549 
    550   
    551   <tr class="api apilevel-" >
    552   
    553   
    554     <td><code>
    555         
    556         
    557         static
    558         
    559         
    560         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    561     </td>
    562   
    563     <td width="100%">
    564       <code>
    565       <a href="/reference/android/support/test/uiautomator/Until.html#descStartsWith(java.lang.String)">descStartsWith</a>(String substring)
    566       </code>
    567       
    568         <p>Returns a condition that is satisfied when the object's content description starts with the
    569  given string.
    570         
    571     
    572 </p>
    573       
    574     </td>
    575   </tr>
    576   
    577 
    578   
    579   <tr class="api apilevel-" >
    580   
    581   
    582     <td><code>
    583         
    584         
    585         static
    586         
    587         
    588         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    589     </td>
    590   
    591     <td width="100%">
    592       <code>
    593       <a href="/reference/android/support/test/uiautomator/Until.html#enabled(boolean)">enabled</a>(boolean isEnabled)
    594       </code>
    595       
    596         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s enabled state.
    597         
    598     
    599 </p>
    600       
    601     </td>
    602   </tr>
    603   
    604 
    605   
    606   <tr class="api apilevel-" >
    607   
    608   
    609     <td><code>
    610         
    611         
    612         static
    613         
    614         
    615         <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;<a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a>&gt;</code>
    616     </td>
    617   
    618     <td width="100%">
    619       <code>
    620       <a href="/reference/android/support/test/uiautomator/Until.html#findObject(android.support.test.uiautomator.BySelector)">findObject</a>(<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)
    621       </code>
    622       
    623         <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when at least one element matching the
    624  selector can be found.
    625         
    626     
    627 </p>
    628       
    629     </td>
    630   </tr>
    631   
    632 
    633   
    634   <tr class="api apilevel-" >
    635   
    636   
    637     <td><code>
    638         
    639         
    640         static
    641         
    642         
    643         <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;List&lt;<a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a>&gt;&gt;</code>
    644     </td>
    645   
    646     <td width="100%">
    647       <code>
    648       <a href="/reference/android/support/test/uiautomator/Until.html#findObjects(android.support.test.uiautomator.BySelector)">findObjects</a>(<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)
    649       </code>
    650       
    651         <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when at least one element matching the
    652  selector can be found.
    653         
    654     
    655 </p>
    656       
    657     </td>
    658   </tr>
    659   
    660 
    661   
    662   <tr class="api apilevel-" >
    663   
    664   
    665     <td><code>
    666         
    667         
    668         static
    669         
    670         
    671         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    672     </td>
    673   
    674     <td width="100%">
    675       <code>
    676       <a href="/reference/android/support/test/uiautomator/Until.html#focusable(boolean)">focusable</a>(boolean isFocusable)
    677       </code>
    678       
    679         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s focusable state.
    680         
    681     
    682 </p>
    683       
    684     </td>
    685   </tr>
    686   
    687 
    688   
    689   <tr class="api apilevel-" >
    690   
    691   
    692     <td><code>
    693         
    694         
    695         static
    696         
    697         
    698         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    699     </td>
    700   
    701     <td width="100%">
    702       <code>
    703       <a href="/reference/android/support/test/uiautomator/Until.html#focused(boolean)">focused</a>(boolean isFocused)
    704       </code>
    705       
    706         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s focused state.
    707         
    708     
    709 </p>
    710       
    711     </td>
    712   </tr>
    713   
    714 
    715   
    716   <tr class="api apilevel-" >
    717   
    718   
    719     <td><code>
    720         
    721         
    722         static
    723         
    724         
    725         <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;Boolean&gt;</code>
    726     </td>
    727   
    728     <td width="100%">
    729       <code>
    730       <a href="/reference/android/support/test/uiautomator/Until.html#gone(android.support.test.uiautomator.BySelector)">gone</a>(<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)
    731       </code>
    732       
    733         <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when no elements matching the selector
    734  can be found.
    735         
    736     
    737 </p>
    738       
    739     </td>
    740   </tr>
    741   
    742 
    743   
    744   <tr class="api apilevel-" >
    745   
    746   
    747     <td><code>
    748         
    749         
    750         static
    751         
    752         
    753         <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;Boolean&gt;</code>
    754     </td>
    755   
    756     <td width="100%">
    757       <code>
    758       <a href="/reference/android/support/test/uiautomator/Until.html#hasObject(android.support.test.uiautomator.BySelector)">hasObject</a>(<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)
    759       </code>
    760       
    761         <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when at least one element matching the
    762  selector can be found.
    763         
    764     
    765 </p>
    766       
    767     </td>
    768   </tr>
    769   
    770 
    771   
    772   <tr class="api apilevel-" >
    773   
    774   
    775     <td><code>
    776         
    777         
    778         static
    779         
    780         
    781         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    782     </td>
    783   
    784     <td width="100%">
    785       <code>
    786       <a href="/reference/android/support/test/uiautomator/Until.html#longClickable(boolean)">longClickable</a>(boolean isLongClickable)
    787       </code>
    788       
    789         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s long clickable state.
    790         
    791     
    792 </p>
    793       
    794     </td>
    795   </tr>
    796   
    797 
    798   
    799   <tr class="api apilevel-" >
    800   
    801   
    802     <td><code>
    803         
    804         
    805         static
    806         
    807         
    808         <a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a>&lt;Boolean&gt;</code>
    809     </td>
    810   
    811     <td width="100%">
    812       <code>
    813       <a href="/reference/android/support/test/uiautomator/Until.html#newWindow()">newWindow</a>()
    814       </code>
    815       
    816         <p>Returns a condition that depends on a new window having appeared.
    817         
    818     
    819 </p>
    820       
    821     </td>
    822   </tr>
    823   
    824 
    825   
    826   <tr class="api apilevel-" >
    827   
    828   
    829     <td><code>
    830         
    831         
    832         static
    833         
    834         
    835         <a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a>&lt;Boolean&gt;</code>
    836     </td>
    837   
    838     <td width="100%">
    839       <code>
    840       <a href="/reference/android/support/test/uiautomator/Until.html#scrollFinished(android.support.test.uiautomator.Direction)">scrollFinished</a>(<a href="/reference/android/support/test/uiautomator/Direction.html">Direction</a> direction)
    841       </code>
    842       
    843         <p>Returns a condition that depends on a scroll having reached the end in the given
    844  <code>direction</code>.
    845         
    846     
    847 </p>
    848       
    849     </td>
    850   </tr>
    851   
    852 
    853   
    854   <tr class="api apilevel-" >
    855   
    856   
    857     <td><code>
    858         
    859         
    860         static
    861         
    862         
    863         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    864     </td>
    865   
    866     <td width="100%">
    867       <code>
    868       <a href="/reference/android/support/test/uiautomator/Until.html#scrollable(boolean)">scrollable</a>(boolean isScrollable)
    869       </code>
    870       
    871         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s scrollable state.
    872         
    873     
    874 </p>
    875       
    876     </td>
    877   </tr>
    878   
    879 
    880   
    881   <tr class="api apilevel-" >
    882   
    883   
    884     <td><code>
    885         
    886         
    887         static
    888         
    889         
    890         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    891     </td>
    892   
    893     <td width="100%">
    894       <code>
    895       <a href="/reference/android/support/test/uiautomator/Until.html#selected(boolean)">selected</a>(boolean isSelected)
    896       </code>
    897       
    898         <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s selected state.
    899         
    900     
    901 </p>
    902       
    903     </td>
    904   </tr>
    905   
    906 
    907   
    908   <tr class="api apilevel-" >
    909   
    910   
    911     <td><code>
    912         
    913         
    914         static
    915         
    916         
    917         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    918     </td>
    919   
    920     <td width="100%">
    921       <code>
    922       <a href="/reference/android/support/test/uiautomator/Until.html#textContains(java.lang.String)">textContains</a>(String substring)
    923       </code>
    924       
    925         <p>Returns a condition that is satisfied when the object's text value contains the given string.
    926         
    927     
    928 </p>
    929       
    930     </td>
    931   </tr>
    932   
    933 
    934   
    935   <tr class="api apilevel-" >
    936   
    937   
    938     <td><code>
    939         
    940         
    941         static
    942         
    943         
    944         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    945     </td>
    946   
    947     <td width="100%">
    948       <code>
    949       <a href="/reference/android/support/test/uiautomator/Until.html#textEndsWith(java.lang.String)">textEndsWith</a>(String substring)
    950       </code>
    951       
    952         <p>Returns a condition that is satisfied when the object's text value ends with the given
    953  string.
    954         
    955     
    956 </p>
    957       
    958     </td>
    959   </tr>
    960   
    961 
    962   
    963   <tr class="api apilevel-" >
    964   
    965   
    966     <td><code>
    967         
    968         
    969         static
    970         
    971         
    972         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
    973     </td>
    974   
    975     <td width="100%">
    976       <code>
    977       <a href="/reference/android/support/test/uiautomator/Until.html#textEquals(java.lang.String)">textEquals</a>(String text)
    978       </code>
    979       
    980         <p>Returns a condition that is satisfied when the object's text value exactly matches the given
    981  string.
    982         
    983     
    984 </p>
    985       
    986     </td>
    987   </tr>
    988   
    989 
    990   
    991   <tr class="api apilevel-" >
    992   
    993   
    994     <td><code>
    995         
    996         
    997         static
    998         
    999         
   1000         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
   1001     </td>
   1002   
   1003     <td width="100%">
   1004       <code>
   1005       <a href="/reference/android/support/test/uiautomator/Until.html#textMatches(java.lang.String)">textMatches</a>(String regex)
   1006       </code>
   1007       
   1008         <p>Returns a condition that is satisfied when the object's text value matches the given regex.
   1009         
   1010     
   1011 </p>
   1012       
   1013     </td>
   1014   </tr>
   1015   
   1016 
   1017   
   1018   <tr class="api apilevel-" >
   1019   
   1020   
   1021     <td><code>
   1022         
   1023         
   1024         static
   1025         
   1026         
   1027         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
   1028     </td>
   1029   
   1030     <td width="100%">
   1031       <code>
   1032       <a href="/reference/android/support/test/uiautomator/Until.html#textMatches(java.util.regex.Pattern)">textMatches</a>(Pattern regex)
   1033       </code>
   1034       
   1035         <p>Returns a condition that is satisfied when the object's text value matches the given regex.
   1036         
   1037     
   1038 </p>
   1039       
   1040     </td>
   1041   </tr>
   1042   
   1043 
   1044   
   1045   <tr class="api apilevel-" >
   1046   
   1047   
   1048     <td><code>
   1049         
   1050         
   1051         static
   1052         
   1053         
   1054         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
   1055     </td>
   1056   
   1057     <td width="100%">
   1058       <code>
   1059       <a href="/reference/android/support/test/uiautomator/Until.html#textNotEquals(java.lang.String)">textNotEquals</a>(String text)
   1060       </code>
   1061       
   1062     </td>
   1063   </tr>
   1064   
   1065 
   1066   
   1067   <tr class="api apilevel-" >
   1068   
   1069   
   1070     <td><code>
   1071         
   1072         
   1073         static
   1074         
   1075         
   1076         <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code>
   1077     </td>
   1078   
   1079     <td width="100%">
   1080       <code>
   1081       <a href="/reference/android/support/test/uiautomator/Until.html#textStartsWith(java.lang.String)">textStartsWith</a>(String substring)
   1082       </code>
   1083       
   1084         <p>Returns a condition that is satisfied when the object's text value starts with the given
   1085  string.
   1086         
   1087     
   1088 </p>
   1089       
   1090     </td>
   1091   </tr>
   1092   
   1093 
   1094 
   1095 </table>
   1096 
   1097 
   1098 
   1099 
   1100 
   1101 
   1102 
   1103 <!-- ========== METHOD SUMMARY =========== -->
   1104 <table id="inhmethods" class="methods inhtable">
   1105 <tr><th><h3>Inherited methods</h3></th></tr>
   1106 
   1107 
   1108 <tr class="api apilevel-" >
   1109 <td colspan="2">
   1110 
   1111   <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
   1112           ><img height="34" id="inherited-methods-java.lang.Object-trigger"
   1113           src="/assets/images/styles/disclosure_down.png"
   1114           class="jd-expando-trigger-img" /></a>From
   1115 class
   1116 <code>
   1117   
   1118     java.lang.Object
   1119   
   1120 </code>
   1121 <div id="inherited-methods-java.lang.Object">
   1122   <div id="inherited-methods-java.lang.Object-list"
   1123         class="jd-inheritedlinks">
   1124   </div>
   1125   <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
   1126     <table class="jd-sumtable-expando responsive">
   1127       
   1128 
   1129 
   1130   
   1131   <tr class="api apilevel-" >
   1132   
   1133   
   1134     <td><code>
   1135         
   1136         
   1137         
   1138         
   1139         
   1140         Object</code>
   1141     </td>
   1142   
   1143     <td width="100%">
   1144       <code>
   1145       clone()
   1146       </code>
   1147       
   1148     </td>
   1149   </tr>
   1150   
   1151 
   1152   
   1153   <tr class="api apilevel-" >
   1154   
   1155   
   1156     <td><code>
   1157         
   1158         
   1159         
   1160         
   1161         
   1162         boolean</code>
   1163     </td>
   1164   
   1165     <td width="100%">
   1166       <code>
   1167       equals(Object arg0)
   1168       </code>
   1169       
   1170     </td>
   1171   </tr>
   1172   
   1173 
   1174   
   1175   <tr class="api apilevel-" >
   1176   
   1177   
   1178     <td><code>
   1179         
   1180         
   1181         
   1182         
   1183         
   1184         void</code>
   1185     </td>
   1186   
   1187     <td width="100%">
   1188       <code>
   1189       finalize()
   1190       </code>
   1191       
   1192     </td>
   1193   </tr>
   1194   
   1195 
   1196   
   1197   <tr class="api apilevel-" >
   1198   
   1199   
   1200     <td><code>
   1201         
   1202         
   1203         
   1204         final
   1205         
   1206         Class&lt;?&gt;</code>
   1207     </td>
   1208   
   1209     <td width="100%">
   1210       <code>
   1211       getClass()
   1212       </code>
   1213       
   1214     </td>
   1215   </tr>
   1216   
   1217 
   1218   
   1219   <tr class="api apilevel-" >
   1220   
   1221   
   1222     <td><code>
   1223         
   1224         
   1225         
   1226         
   1227         
   1228         int</code>
   1229     </td>
   1230   
   1231     <td width="100%">
   1232       <code>
   1233       hashCode()
   1234       </code>
   1235       
   1236     </td>
   1237   </tr>
   1238   
   1239 
   1240   
   1241   <tr class="api apilevel-" >
   1242   
   1243   
   1244     <td><code>
   1245         
   1246         
   1247         
   1248         final
   1249         
   1250         void</code>
   1251     </td>
   1252   
   1253     <td width="100%">
   1254       <code>
   1255       notify()
   1256       </code>
   1257       
   1258     </td>
   1259   </tr>
   1260   
   1261 
   1262   
   1263   <tr class="api apilevel-" >
   1264   
   1265   
   1266     <td><code>
   1267         
   1268         
   1269         
   1270         final
   1271         
   1272         void</code>
   1273     </td>
   1274   
   1275     <td width="100%">
   1276       <code>
   1277       notifyAll()
   1278       </code>
   1279       
   1280     </td>
   1281   </tr>
   1282   
   1283 
   1284   
   1285   <tr class="api apilevel-" >
   1286   
   1287   
   1288     <td><code>
   1289         
   1290         
   1291         
   1292         
   1293         
   1294         String</code>
   1295     </td>
   1296   
   1297     <td width="100%">
   1298       <code>
   1299       toString()
   1300       </code>
   1301       
   1302     </td>
   1303   </tr>
   1304   
   1305 
   1306   
   1307   <tr class="api apilevel-" >
   1308   
   1309   
   1310     <td><code>
   1311         
   1312         
   1313         
   1314         final
   1315         
   1316         void</code>
   1317     </td>
   1318   
   1319     <td width="100%">
   1320       <code>
   1321       wait(long arg0, int arg1)
   1322       </code>
   1323       
   1324     </td>
   1325   </tr>
   1326   
   1327 
   1328   
   1329   <tr class="api apilevel-" >
   1330   
   1331   
   1332     <td><code>
   1333         
   1334         
   1335         
   1336         final
   1337         
   1338         void</code>
   1339     </td>
   1340   
   1341     <td width="100%">
   1342       <code>
   1343       wait(long arg0)
   1344       </code>
   1345       
   1346     </td>
   1347   </tr>
   1348   
   1349 
   1350   
   1351   <tr class="api apilevel-" >
   1352   
   1353   
   1354     <td><code>
   1355         
   1356         
   1357         
   1358         final
   1359         
   1360         void</code>
   1361     </td>
   1362   
   1363     <td width="100%">
   1364       <code>
   1365       wait()
   1366       </code>
   1367       
   1368     </td>
   1369   </tr>
   1370   
   1371 
   1372 
   1373     </table>
   1374   </div>
   1375 </div>
   1376 </td></tr>
   1377 
   1378 
   1379 </table>
   1380 
   1381 
   1382 
   1383 <!-- XML Attributes -->
   1384 
   1385 
   1386 <!-- Enum Values -->
   1387 
   1388 
   1389 <!-- Constants -->
   1390 
   1391 
   1392 <!-- Fields -->
   1393 
   1394 
   1395 <!-- Public ctors -->
   1396 
   1397 
   1398 <!-- ========= CONSTRUCTOR DETAIL ======== -->
   1399 <h2 class="api-section">Public constructors</h2>
   1400 
   1401 
   1402 
   1403 <A NAME="Until()"></A>
   1404 
   1405 <div class="api apilevel-">
   1406     <h3 class="api-name">Until</h3>
   1407     <div class="api-level">
   1408       <div></div>
   1409       
   1410   
   1411 
   1412     </div>
   1413 <pre class="api-signature no-pretty-print">
   1414 Until ()</pre>
   1415     
   1416     
   1417 
   1418     
   1419   <p></p>
   1420 
   1421 </div>
   1422 
   1423 
   1424 
   1425 
   1426 
   1427 <!-- ========= CONSTRUCTOR DETAIL ======== -->
   1428 <!-- Protected ctors -->
   1429 
   1430 
   1431 
   1432 <!-- ========= METHOD DETAIL ======== -->
   1433 <!-- Public methdos -->
   1434 
   1435 <h2 class="api-section">Public methods</h2>
   1436 
   1437 
   1438 
   1439 <A NAME="checkable(boolean)"></A>
   1440 
   1441 <div class="api apilevel-">
   1442     <h3 class="api-name">checkable</h3>
   1443     <div class="api-level">
   1444       <div></div>
   1445       
   1446   
   1447 
   1448     </div>
   1449 <pre class="api-signature no-pretty-print">
   1450 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; checkable (boolean isCheckable)</pre>
   1451     
   1452     
   1453 
   1454     
   1455   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s checkable state.</p>
   1456     <table class="responsive">
   1457     <tr><th colspan=2>Parameters</th></tr>
   1458       <tr>
   1459         <td><code>isCheckable</code></td>
   1460         <td width="100%">
   1461           <code>boolean</code>:
   1462           Whether the object should be checkable to satisfy this condition.
   1463 </td>
   1464       </tr>
   1465     </table>
   1466     <table class="responsive">
   1467       <tr><th colspan=2>Returns</th></tr>
   1468       <tr>
   1469         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1470         <td width="100%"><!-- no returns description in source --></td>
   1471       </tr>
   1472     </table>
   1473 
   1474 </div>
   1475 
   1476 
   1477 <A NAME="checked(boolean)"></A>
   1478 
   1479 <div class="api apilevel-">
   1480     <h3 class="api-name">checked</h3>
   1481     <div class="api-level">
   1482       <div></div>
   1483       
   1484   
   1485 
   1486     </div>
   1487 <pre class="api-signature no-pretty-print">
   1488 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; checked (boolean isChecked)</pre>
   1489     
   1490     
   1491 
   1492     
   1493   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s checked state.</p>
   1494     <table class="responsive">
   1495     <tr><th colspan=2>Parameters</th></tr>
   1496       <tr>
   1497         <td><code>isChecked</code></td>
   1498         <td width="100%">
   1499           <code>boolean</code>:
   1500           Whether the object should be checked to satisfy this condition.
   1501 </td>
   1502       </tr>
   1503     </table>
   1504     <table class="responsive">
   1505       <tr><th colspan=2>Returns</th></tr>
   1506       <tr>
   1507         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1508         <td width="100%"><!-- no returns description in source --></td>
   1509       </tr>
   1510     </table>
   1511 
   1512 </div>
   1513 
   1514 
   1515 <A NAME="clickable(boolean)"></A>
   1516 
   1517 <div class="api apilevel-">
   1518     <h3 class="api-name">clickable</h3>
   1519     <div class="api-level">
   1520       <div></div>
   1521       
   1522   
   1523 
   1524     </div>
   1525 <pre class="api-signature no-pretty-print">
   1526 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; clickable (boolean isClickable)</pre>
   1527     
   1528     
   1529 
   1530     
   1531   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s clickable state.</p>
   1532     <table class="responsive">
   1533     <tr><th colspan=2>Parameters</th></tr>
   1534       <tr>
   1535         <td><code>isClickable</code></td>
   1536         <td width="100%">
   1537           <code>boolean</code>:
   1538           Whether the object should be clickable to satisfy this condition.
   1539 </td>
   1540       </tr>
   1541     </table>
   1542     <table class="responsive">
   1543       <tr><th colspan=2>Returns</th></tr>
   1544       <tr>
   1545         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1546         <td width="100%"><!-- no returns description in source --></td>
   1547       </tr>
   1548     </table>
   1549 
   1550 </div>
   1551 
   1552 
   1553 <A NAME="descContains(java.lang.String)"></A>
   1554 
   1555 <div class="api apilevel-">
   1556     <h3 class="api-name">descContains</h3>
   1557     <div class="api-level">
   1558       <div></div>
   1559       
   1560   
   1561 
   1562     </div>
   1563 <pre class="api-signature no-pretty-print">
   1564 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; descContains (String substring)</pre>
   1565     
   1566     
   1567 
   1568     
   1569   <p>Returns a condition that is satisfied when the object's content description contains the
   1570  given string.
   1571 </p>
   1572     <table class="responsive">
   1573     <tr><th colspan=2>Parameters</th></tr>
   1574       <tr>
   1575         <td><code>substring</code></td>
   1576         <td width="100%">
   1577           <code>String</code>
   1578           <!-- no parameter comment --></td>
   1579       </tr>
   1580     </table>
   1581     <table class="responsive">
   1582       <tr><th colspan=2>Returns</th></tr>
   1583       <tr>
   1584         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1585         <td width="100%"><!-- no returns description in source --></td>
   1586       </tr>
   1587     </table>
   1588 
   1589 </div>
   1590 
   1591 
   1592 <A NAME="descEndsWith(java.lang.String)"></A>
   1593 
   1594 <div class="api apilevel-">
   1595     <h3 class="api-name">descEndsWith</h3>
   1596     <div class="api-level">
   1597       <div></div>
   1598       
   1599   
   1600 
   1601     </div>
   1602 <pre class="api-signature no-pretty-print">
   1603 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; descEndsWith (String substring)</pre>
   1604     
   1605     
   1606 
   1607     
   1608   <p>Returns a condition that is satisfied when the object's content description ends with the
   1609  given string.
   1610 </p>
   1611     <table class="responsive">
   1612     <tr><th colspan=2>Parameters</th></tr>
   1613       <tr>
   1614         <td><code>substring</code></td>
   1615         <td width="100%">
   1616           <code>String</code>
   1617           <!-- no parameter comment --></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/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1624         <td width="100%"><!-- no returns description in source --></td>
   1625       </tr>
   1626     </table>
   1627 
   1628 </div>
   1629 
   1630 
   1631 <A NAME="descEquals(java.lang.String)"></A>
   1632 
   1633 <div class="api apilevel-">
   1634     <h3 class="api-name">descEquals</h3>
   1635     <div class="api-level">
   1636       <div></div>
   1637       
   1638   
   1639 
   1640     </div>
   1641 <pre class="api-signature no-pretty-print">
   1642 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; descEquals (String contentDescription)</pre>
   1643     
   1644     
   1645 
   1646     
   1647   <p>Returns a condition that is satisfied when the object's content description exactly matches
   1648  the given string.
   1649 </p>
   1650     <table class="responsive">
   1651     <tr><th colspan=2>Parameters</th></tr>
   1652       <tr>
   1653         <td><code>contentDescription</code></td>
   1654         <td width="100%">
   1655           <code>String</code>
   1656           <!-- no parameter comment --></td>
   1657       </tr>
   1658     </table>
   1659     <table class="responsive">
   1660       <tr><th colspan=2>Returns</th></tr>
   1661       <tr>
   1662         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1663         <td width="100%"><!-- no returns description in source --></td>
   1664       </tr>
   1665     </table>
   1666 
   1667 </div>
   1668 
   1669 
   1670 <A NAME="descMatches(java.lang.String)"></A>
   1671 
   1672 <div class="api apilevel-">
   1673     <h3 class="api-name">descMatches</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/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; descMatches (String regex)</pre>
   1682     
   1683     
   1684 
   1685     
   1686   <p>Returns a condition that is satisfied when the object's content description matches the given
   1687  regex.
   1688 </p>
   1689     <table class="responsive">
   1690     <tr><th colspan=2>Parameters</th></tr>
   1691       <tr>
   1692         <td><code>regex</code></td>
   1693         <td width="100%">
   1694           <code>String</code>
   1695           <!-- no parameter comment --></td>
   1696       </tr>
   1697     </table>
   1698     <table class="responsive">
   1699       <tr><th colspan=2>Returns</th></tr>
   1700       <tr>
   1701         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1702         <td width="100%"><!-- no returns description in source --></td>
   1703       </tr>
   1704     </table>
   1705 
   1706 </div>
   1707 
   1708 
   1709 <A NAME="descMatches(java.util.regex.Pattern)"></A>
   1710 
   1711 <div class="api apilevel-">
   1712     <h3 class="api-name">descMatches</h3>
   1713     <div class="api-level">
   1714       <div></div>
   1715       
   1716   
   1717 
   1718     </div>
   1719 <pre class="api-signature no-pretty-print">
   1720 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; descMatches (Pattern regex)</pre>
   1721     
   1722     
   1723 
   1724     
   1725   <p>Returns a condition that is satisfied when the object's content description matches the given
   1726  regex.
   1727 </p>
   1728     <table class="responsive">
   1729     <tr><th colspan=2>Parameters</th></tr>
   1730       <tr>
   1731         <td><code>regex</code></td>
   1732         <td width="100%">
   1733           <code>Pattern</code>
   1734           <!-- no parameter comment --></td>
   1735       </tr>
   1736     </table>
   1737     <table class="responsive">
   1738       <tr><th colspan=2>Returns</th></tr>
   1739       <tr>
   1740         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1741         <td width="100%"><!-- no returns description in source --></td>
   1742       </tr>
   1743     </table>
   1744 
   1745 </div>
   1746 
   1747 
   1748 <A NAME="descStartsWith(java.lang.String)"></A>
   1749 
   1750 <div class="api apilevel-">
   1751     <h3 class="api-name">descStartsWith</h3>
   1752     <div class="api-level">
   1753       <div></div>
   1754       
   1755   
   1756 
   1757     </div>
   1758 <pre class="api-signature no-pretty-print">
   1759 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; descStartsWith (String substring)</pre>
   1760     
   1761     
   1762 
   1763     
   1764   <p>Returns a condition that is satisfied when the object's content description starts with the
   1765  given string.
   1766 </p>
   1767     <table class="responsive">
   1768     <tr><th colspan=2>Parameters</th></tr>
   1769       <tr>
   1770         <td><code>substring</code></td>
   1771         <td width="100%">
   1772           <code>String</code>
   1773           <!-- no parameter comment --></td>
   1774       </tr>
   1775     </table>
   1776     <table class="responsive">
   1777       <tr><th colspan=2>Returns</th></tr>
   1778       <tr>
   1779         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1780         <td width="100%"><!-- no returns description in source --></td>
   1781       </tr>
   1782     </table>
   1783 
   1784 </div>
   1785 
   1786 
   1787 <A NAME="enabled(boolean)"></A>
   1788 
   1789 <div class="api apilevel-">
   1790     <h3 class="api-name">enabled</h3>
   1791     <div class="api-level">
   1792       <div></div>
   1793       
   1794   
   1795 
   1796     </div>
   1797 <pre class="api-signature no-pretty-print">
   1798 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; enabled (boolean isEnabled)</pre>
   1799     
   1800     
   1801 
   1802     
   1803   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s enabled state.</p>
   1804     <table class="responsive">
   1805     <tr><th colspan=2>Parameters</th></tr>
   1806       <tr>
   1807         <td><code>isEnabled</code></td>
   1808         <td width="100%">
   1809           <code>boolean</code>:
   1810           Whether the object should be enabled to satisfy this condition.
   1811 </td>
   1812       </tr>
   1813     </table>
   1814     <table class="responsive">
   1815       <tr><th colspan=2>Returns</th></tr>
   1816       <tr>
   1817         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1818         <td width="100%"><!-- no returns description in source --></td>
   1819       </tr>
   1820     </table>
   1821 
   1822 </div>
   1823 
   1824 
   1825 <A NAME="findObject(android.support.test.uiautomator.BySelector)"></A>
   1826 
   1827 <div class="api apilevel-">
   1828     <h3 class="api-name">findObject</h3>
   1829     <div class="api-level">
   1830       <div></div>
   1831       
   1832   
   1833 
   1834     </div>
   1835 <pre class="api-signature no-pretty-print">
   1836 <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;<a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a>&gt; findObject (<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)</pre>
   1837     
   1838     
   1839 
   1840     
   1841   <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when at least one element matching the
   1842  selector can be found. The condition will return the first matching element.
   1843 </p>
   1844     <table class="responsive">
   1845     <tr><th colspan=2>Parameters</th></tr>
   1846       <tr>
   1847         <td><code>selector</code></td>
   1848         <td width="100%">
   1849           <code>BySelector</code>
   1850           <!-- no parameter comment --></td>
   1851       </tr>
   1852     </table>
   1853     <table class="responsive">
   1854       <tr><th colspan=2>Returns</th></tr>
   1855       <tr>
   1856         <td><code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;<a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a>&gt;</code></td>
   1857         <td width="100%"><!-- no returns description in source --></td>
   1858       </tr>
   1859     </table>
   1860 
   1861 </div>
   1862 
   1863 
   1864 <A NAME="findObjects(android.support.test.uiautomator.BySelector)"></A>
   1865 
   1866 <div class="api apilevel-">
   1867     <h3 class="api-name">findObjects</h3>
   1868     <div class="api-level">
   1869       <div></div>
   1870       
   1871   
   1872 
   1873     </div>
   1874 <pre class="api-signature no-pretty-print">
   1875 <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;List&lt;<a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a>&gt;&gt; findObjects (<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)</pre>
   1876     
   1877     
   1878 
   1879     
   1880   <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when at least one element matching the
   1881  selector can be found. The condition will return all matching elements.
   1882 </p>
   1883     <table class="responsive">
   1884     <tr><th colspan=2>Parameters</th></tr>
   1885       <tr>
   1886         <td><code>selector</code></td>
   1887         <td width="100%">
   1888           <code>BySelector</code>
   1889           <!-- no parameter comment --></td>
   1890       </tr>
   1891     </table>
   1892     <table class="responsive">
   1893       <tr><th colspan=2>Returns</th></tr>
   1894       <tr>
   1895         <td><code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;List&lt;<a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a>&gt;&gt;</code></td>
   1896         <td width="100%"><!-- no returns description in source --></td>
   1897       </tr>
   1898     </table>
   1899 
   1900 </div>
   1901 
   1902 
   1903 <A NAME="focusable(boolean)"></A>
   1904 
   1905 <div class="api apilevel-">
   1906     <h3 class="api-name">focusable</h3>
   1907     <div class="api-level">
   1908       <div></div>
   1909       
   1910   
   1911 
   1912     </div>
   1913 <pre class="api-signature no-pretty-print">
   1914 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; focusable (boolean isFocusable)</pre>
   1915     
   1916     
   1917 
   1918     
   1919   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s focusable state.</p>
   1920     <table class="responsive">
   1921     <tr><th colspan=2>Parameters</th></tr>
   1922       <tr>
   1923         <td><code>isFocusable</code></td>
   1924         <td width="100%">
   1925           <code>boolean</code>:
   1926           Whether the object should be focusable to satisfy this condition.
   1927 </td>
   1928       </tr>
   1929     </table>
   1930     <table class="responsive">
   1931       <tr><th colspan=2>Returns</th></tr>
   1932       <tr>
   1933         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1934         <td width="100%"><!-- no returns description in source --></td>
   1935       </tr>
   1936     </table>
   1937 
   1938 </div>
   1939 
   1940 
   1941 <A NAME="focused(boolean)"></A>
   1942 
   1943 <div class="api apilevel-">
   1944     <h3 class="api-name">focused</h3>
   1945     <div class="api-level">
   1946       <div></div>
   1947       
   1948   
   1949 
   1950     </div>
   1951 <pre class="api-signature no-pretty-print">
   1952 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; focused (boolean isFocused)</pre>
   1953     
   1954     
   1955 
   1956     
   1957   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s focused state.</p>
   1958     <table class="responsive">
   1959     <tr><th colspan=2>Parameters</th></tr>
   1960       <tr>
   1961         <td><code>isFocused</code></td>
   1962         <td width="100%">
   1963           <code>boolean</code>:
   1964           Whether the object should be focused to satisfy this condition.
   1965 </td>
   1966       </tr>
   1967     </table>
   1968     <table class="responsive">
   1969       <tr><th colspan=2>Returns</th></tr>
   1970       <tr>
   1971         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   1972         <td width="100%"><!-- no returns description in source --></td>
   1973       </tr>
   1974     </table>
   1975 
   1976 </div>
   1977 
   1978 
   1979 <A NAME="gone(android.support.test.uiautomator.BySelector)"></A>
   1980 
   1981 <div class="api apilevel-">
   1982     <h3 class="api-name">gone</h3>
   1983     <div class="api-level">
   1984       <div></div>
   1985       
   1986   
   1987 
   1988     </div>
   1989 <pre class="api-signature no-pretty-print">
   1990 <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;Boolean&gt; gone (<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)</pre>
   1991     
   1992     
   1993 
   1994     
   1995   <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when no elements matching the selector
   1996  can be found.
   1997 </p>
   1998     <table class="responsive">
   1999     <tr><th colspan=2>Parameters</th></tr>
   2000       <tr>
   2001         <td><code>selector</code></td>
   2002         <td width="100%">
   2003           <code>BySelector</code>
   2004           <!-- no parameter comment --></td>
   2005       </tr>
   2006     </table>
   2007     <table class="responsive">
   2008       <tr><th colspan=2>Returns</th></tr>
   2009       <tr>
   2010         <td><code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;Boolean&gt;</code></td>
   2011         <td width="100%"><!-- no returns description in source --></td>
   2012       </tr>
   2013     </table>
   2014 
   2015 </div>
   2016 
   2017 
   2018 <A NAME="hasObject(android.support.test.uiautomator.BySelector)"></A>
   2019 
   2020 <div class="api apilevel-">
   2021     <h3 class="api-name">hasObject</h3>
   2022     <div class="api-level">
   2023       <div></div>
   2024       
   2025   
   2026 
   2027     </div>
   2028 <pre class="api-signature no-pretty-print">
   2029 <a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;Boolean&gt; hasObject (<a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a> selector)</pre>
   2030     
   2031     
   2032 
   2033     
   2034   <p>Returns a <code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></code> that is satisfied when at least one element matching the
   2035  selector can be found.
   2036 </p>
   2037     <table class="responsive">
   2038     <tr><th colspan=2>Parameters</th></tr>
   2039       <tr>
   2040         <td><code>selector</code></td>
   2041         <td width="100%">
   2042           <code>BySelector</code>
   2043           <!-- no parameter comment --></td>
   2044       </tr>
   2045     </table>
   2046     <table class="responsive">
   2047       <tr><th colspan=2>Returns</th></tr>
   2048       <tr>
   2049         <td><code><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a>&lt;Boolean&gt;</code></td>
   2050         <td width="100%"><!-- no returns description in source --></td>
   2051       </tr>
   2052     </table>
   2053 
   2054 </div>
   2055 
   2056 
   2057 <A NAME="longClickable(boolean)"></A>
   2058 
   2059 <div class="api apilevel-">
   2060     <h3 class="api-name">longClickable</h3>
   2061     <div class="api-level">
   2062       <div></div>
   2063       
   2064   
   2065 
   2066     </div>
   2067 <pre class="api-signature no-pretty-print">
   2068 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; longClickable (boolean isLongClickable)</pre>
   2069     
   2070     
   2071 
   2072     
   2073   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s long clickable state.</p>
   2074     <table class="responsive">
   2075     <tr><th colspan=2>Parameters</th></tr>
   2076       <tr>
   2077         <td><code>isLongClickable</code></td>
   2078         <td width="100%">
   2079           <code>boolean</code>:
   2080           Whether the object should be long clickable to satisfy this condition.
   2081 </td>
   2082       </tr>
   2083     </table>
   2084     <table class="responsive">
   2085       <tr><th colspan=2>Returns</th></tr>
   2086       <tr>
   2087         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2088         <td width="100%"><!-- no returns description in source --></td>
   2089       </tr>
   2090     </table>
   2091 
   2092 </div>
   2093 
   2094 
   2095 <A NAME="newWindow()"></A>
   2096 
   2097 <div class="api apilevel-">
   2098     <h3 class="api-name">newWindow</h3>
   2099     <div class="api-level">
   2100       <div></div>
   2101       
   2102   
   2103 
   2104     </div>
   2105 <pre class="api-signature no-pretty-print">
   2106 <a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a>&lt;Boolean&gt; newWindow ()</pre>
   2107     
   2108     
   2109 
   2110     
   2111   <p>Returns a condition that depends on a new window having appeared. </p>
   2112     <table class="responsive">
   2113       <tr><th colspan=2>Returns</th></tr>
   2114       <tr>
   2115         <td><code><a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a>&lt;Boolean&gt;</code></td>
   2116         <td width="100%"><!-- no returns description in source --></td>
   2117       </tr>
   2118     </table>
   2119 
   2120 </div>
   2121 
   2122 
   2123 <A NAME="scrollFinished(android.support.test.uiautomator.Direction)"></A>
   2124 
   2125 <div class="api apilevel-">
   2126     <h3 class="api-name">scrollFinished</h3>
   2127     <div class="api-level">
   2128       <div></div>
   2129       
   2130   
   2131 
   2132     </div>
   2133 <pre class="api-signature no-pretty-print">
   2134 <a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a>&lt;Boolean&gt; scrollFinished (<a href="/reference/android/support/test/uiautomator/Direction.html">Direction</a> direction)</pre>
   2135     
   2136     
   2137 
   2138     
   2139   <p>Returns a condition that depends on a scroll having reached the end in the given
   2140  <code>direction</code>.</p>
   2141     <table class="responsive">
   2142     <tr><th colspan=2>Parameters</th></tr>
   2143       <tr>
   2144         <td><code>direction</code></td>
   2145         <td width="100%">
   2146           <code>Direction</code>:
   2147           The direction of the scroll.
   2148 </td>
   2149       </tr>
   2150     </table>
   2151     <table class="responsive">
   2152       <tr><th colspan=2>Returns</th></tr>
   2153       <tr>
   2154         <td><code><a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a>&lt;Boolean&gt;</code></td>
   2155         <td width="100%"><!-- no returns description in source --></td>
   2156       </tr>
   2157     </table>
   2158 
   2159 </div>
   2160 
   2161 
   2162 <A NAME="scrollable(boolean)"></A>
   2163 
   2164 <div class="api apilevel-">
   2165     <h3 class="api-name">scrollable</h3>
   2166     <div class="api-level">
   2167       <div></div>
   2168       
   2169   
   2170 
   2171     </div>
   2172 <pre class="api-signature no-pretty-print">
   2173 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; scrollable (boolean isScrollable)</pre>
   2174     
   2175     
   2176 
   2177     
   2178   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s scrollable state.</p>
   2179     <table class="responsive">
   2180     <tr><th colspan=2>Parameters</th></tr>
   2181       <tr>
   2182         <td><code>isScrollable</code></td>
   2183         <td width="100%">
   2184           <code>boolean</code>:
   2185           Whether the object should be scrollable to satisfy this condition.
   2186 </td>
   2187       </tr>
   2188     </table>
   2189     <table class="responsive">
   2190       <tr><th colspan=2>Returns</th></tr>
   2191       <tr>
   2192         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2193         <td width="100%"><!-- no returns description in source --></td>
   2194       </tr>
   2195     </table>
   2196 
   2197 </div>
   2198 
   2199 
   2200 <A NAME="selected(boolean)"></A>
   2201 
   2202 <div class="api apilevel-">
   2203     <h3 class="api-name">selected</h3>
   2204     <div class="api-level">
   2205       <div></div>
   2206       
   2207   
   2208 
   2209     </div>
   2210 <pre class="api-signature no-pretty-print">
   2211 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; selected (boolean isSelected)</pre>
   2212     
   2213     
   2214 
   2215     
   2216   <p>Returns a condition that depends on a <code><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></code>'s selected state.</p>
   2217     <table class="responsive">
   2218     <tr><th colspan=2>Parameters</th></tr>
   2219       <tr>
   2220         <td><code>isSelected</code></td>
   2221         <td width="100%">
   2222           <code>boolean</code>:
   2223           Whether the object should be selected to satisfy this condition.
   2224 </td>
   2225       </tr>
   2226     </table>
   2227     <table class="responsive">
   2228       <tr><th colspan=2>Returns</th></tr>
   2229       <tr>
   2230         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2231         <td width="100%"><!-- no returns description in source --></td>
   2232       </tr>
   2233     </table>
   2234 
   2235 </div>
   2236 
   2237 
   2238 <A NAME="textContains(java.lang.String)"></A>
   2239 
   2240 <div class="api apilevel-">
   2241     <h3 class="api-name">textContains</h3>
   2242     <div class="api-level">
   2243       <div></div>
   2244       
   2245   
   2246 
   2247     </div>
   2248 <pre class="api-signature no-pretty-print">
   2249 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; textContains (String substring)</pre>
   2250     
   2251     
   2252 
   2253     
   2254   <p>Returns a condition that is satisfied when the object's text value contains the given string.
   2255 </p>
   2256     <table class="responsive">
   2257     <tr><th colspan=2>Parameters</th></tr>
   2258       <tr>
   2259         <td><code>substring</code></td>
   2260         <td width="100%">
   2261           <code>String</code>
   2262           <!-- no parameter comment --></td>
   2263       </tr>
   2264     </table>
   2265     <table class="responsive">
   2266       <tr><th colspan=2>Returns</th></tr>
   2267       <tr>
   2268         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2269         <td width="100%"><!-- no returns description in source --></td>
   2270       </tr>
   2271     </table>
   2272 
   2273 </div>
   2274 
   2275 
   2276 <A NAME="textEndsWith(java.lang.String)"></A>
   2277 
   2278 <div class="api apilevel-">
   2279     <h3 class="api-name">textEndsWith</h3>
   2280     <div class="api-level">
   2281       <div></div>
   2282       
   2283   
   2284 
   2285     </div>
   2286 <pre class="api-signature no-pretty-print">
   2287 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; textEndsWith (String substring)</pre>
   2288     
   2289     
   2290 
   2291     
   2292   <p>Returns a condition that is satisfied when the object's text value ends with the given
   2293  string.
   2294 </p>
   2295     <table class="responsive">
   2296     <tr><th colspan=2>Parameters</th></tr>
   2297       <tr>
   2298         <td><code>substring</code></td>
   2299         <td width="100%">
   2300           <code>String</code>
   2301           <!-- no parameter comment --></td>
   2302       </tr>
   2303     </table>
   2304     <table class="responsive">
   2305       <tr><th colspan=2>Returns</th></tr>
   2306       <tr>
   2307         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2308         <td width="100%"><!-- no returns description in source --></td>
   2309       </tr>
   2310     </table>
   2311 
   2312 </div>
   2313 
   2314 
   2315 <A NAME="textEquals(java.lang.String)"></A>
   2316 
   2317 <div class="api apilevel-">
   2318     <h3 class="api-name">textEquals</h3>
   2319     <div class="api-level">
   2320       <div></div>
   2321       
   2322   
   2323 
   2324     </div>
   2325 <pre class="api-signature no-pretty-print">
   2326 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; textEquals (String text)</pre>
   2327     
   2328     
   2329 
   2330     
   2331   <p>Returns a condition that is satisfied when the object's text value exactly matches the given
   2332  string.
   2333 </p>
   2334     <table class="responsive">
   2335     <tr><th colspan=2>Parameters</th></tr>
   2336       <tr>
   2337         <td><code>text</code></td>
   2338         <td width="100%">
   2339           <code>String</code>
   2340           <!-- no parameter comment --></td>
   2341       </tr>
   2342     </table>
   2343     <table class="responsive">
   2344       <tr><th colspan=2>Returns</th></tr>
   2345       <tr>
   2346         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2347         <td width="100%"><!-- no returns description in source --></td>
   2348       </tr>
   2349     </table>
   2350 
   2351 </div>
   2352 
   2353 
   2354 <A NAME="textMatches(java.lang.String)"></A>
   2355 
   2356 <div class="api apilevel-">
   2357     <h3 class="api-name">textMatches</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/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; textMatches (String regex)</pre>
   2366     
   2367     
   2368 
   2369     
   2370   <p>Returns a condition that is satisfied when the object's text value matches the given regex.
   2371 </p>
   2372     <table class="responsive">
   2373     <tr><th colspan=2>Parameters</th></tr>
   2374       <tr>
   2375         <td><code>regex</code></td>
   2376         <td width="100%">
   2377           <code>String</code>
   2378           <!-- no parameter comment --></td>
   2379       </tr>
   2380     </table>
   2381     <table class="responsive">
   2382       <tr><th colspan=2>Returns</th></tr>
   2383       <tr>
   2384         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2385         <td width="100%"><!-- no returns description in source --></td>
   2386       </tr>
   2387     </table>
   2388 
   2389 </div>
   2390 
   2391 
   2392 <A NAME="textMatches(java.util.regex.Pattern)"></A>
   2393 
   2394 <div class="api apilevel-">
   2395     <h3 class="api-name">textMatches</h3>
   2396     <div class="api-level">
   2397       <div></div>
   2398       
   2399   
   2400 
   2401     </div>
   2402 <pre class="api-signature no-pretty-print">
   2403 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; textMatches (Pattern regex)</pre>
   2404     
   2405     
   2406 
   2407     
   2408   <p>Returns a condition that is satisfied when the object's text value matches the given regex.
   2409 </p>
   2410     <table class="responsive">
   2411     <tr><th colspan=2>Parameters</th></tr>
   2412       <tr>
   2413         <td><code>regex</code></td>
   2414         <td width="100%">
   2415           <code>Pattern</code>
   2416           <!-- no parameter comment --></td>
   2417       </tr>
   2418     </table>
   2419     <table class="responsive">
   2420       <tr><th colspan=2>Returns</th></tr>
   2421       <tr>
   2422         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2423         <td width="100%"><!-- no returns description in source --></td>
   2424       </tr>
   2425     </table>
   2426 
   2427 </div>
   2428 
   2429 
   2430 <A NAME="textNotEquals(java.lang.String)"></A>
   2431 
   2432 <div class="api apilevel-">
   2433     <h3 class="api-name">textNotEquals</h3>
   2434     <div class="api-level">
   2435       <div></div>
   2436       
   2437   
   2438 
   2439     </div>
   2440 <pre class="api-signature no-pretty-print">
   2441 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; textNotEquals (String text)</pre>
   2442     
   2443     
   2444 
   2445     
   2446   <p></p>
   2447     <table class="responsive">
   2448     <tr><th colspan=2>Parameters</th></tr>
   2449       <tr>
   2450         <td><code>text</code></td>
   2451         <td width="100%">
   2452           <code>String</code>
   2453           <!-- no parameter comment --></td>
   2454       </tr>
   2455     </table>
   2456     <table class="responsive">
   2457       <tr><th colspan=2>Returns</th></tr>
   2458       <tr>
   2459         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2460         <td width="100%"><!-- no returns description in source --></td>
   2461       </tr>
   2462     </table>
   2463 
   2464 </div>
   2465 
   2466 
   2467 <A NAME="textStartsWith(java.lang.String)"></A>
   2468 
   2469 <div class="api apilevel-">
   2470     <h3 class="api-name">textStartsWith</h3>
   2471     <div class="api-level">
   2472       <div></div>
   2473       
   2474   
   2475 
   2476     </div>
   2477 <pre class="api-signature no-pretty-print">
   2478 <a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt; textStartsWith (String substring)</pre>
   2479     
   2480     
   2481 
   2482     
   2483   <p>Returns a condition that is satisfied when the object's text value starts with the given
   2484  string.
   2485 </p>
   2486     <table class="responsive">
   2487     <tr><th colspan=2>Parameters</th></tr>
   2488       <tr>
   2489         <td><code>substring</code></td>
   2490         <td width="100%">
   2491           <code>String</code>
   2492           <!-- no parameter comment --></td>
   2493       </tr>
   2494     </table>
   2495     <table class="responsive">
   2496       <tr><th colspan=2>Returns</th></tr>
   2497       <tr>
   2498         <td><code><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a>&lt;Boolean&gt;</code></td>
   2499         <td width="100%"><!-- no returns description in source --></td>
   2500       </tr>
   2501     </table>
   2502 
   2503 </div>
   2504 
   2505 
   2506 
   2507 
   2508 
   2509 <!-- ========= METHOD DETAIL ======== -->
   2510 
   2511 
   2512 
   2513 <!-- ========= END OF CLASS DATA ========= -->
   2514 
   2515 </div><!-- end jd-content -->
   2516 
   2517 
   2518 
   2519 <div class="data-reference-resources-wrapper">
   2520   
   2521   <ul data-reference-resources>
   2522     
   2523     
   2524     <li><h2>Interfaces</h2>
   2525       <ul>
   2526           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/IAutomationSupport.html">IAutomationSupport</a></li>
   2527           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiWatcher.html">UiWatcher</a></li>
   2528       </ul>
   2529     </li>
   2530     
   2531     <li><h2>Classes</h2>
   2532       <ul>
   2533           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/By.html">By</a></li>
   2534           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/BySelector.html">BySelector</a></li>
   2535           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/Configurator.html">Configurator</a></li>
   2536           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/EventCondition.html">EventCondition</a></li>
   2537           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/SearchCondition.html">SearchCondition</a></li>
   2538           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiAutomatorInstrumentationTestRunner.html">UiAutomatorInstrumentationTestRunner</a></li>
   2539           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiAutomatorTestCase.html">UiAutomatorTestCase</a></li>
   2540           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiCollection.html">UiCollection</a></li>
   2541           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiDevice.html">UiDevice</a></li>
   2542           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObject.html">UiObject</a></li>
   2543           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObject2.html">UiObject2</a></li>
   2544           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObject2Condition.html">UiObject2Condition</a></li>
   2545           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiScrollable.html">UiScrollable</a></li>
   2546           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiSelector.html">UiSelector</a></li>
   2547           <li class="selected api apilevel-"><a href="/reference/android/support/test/uiautomator/Until.html">Until</a></li>
   2548       </ul>
   2549     </li>
   2550     
   2551     <li><h2>Enums</h2>
   2552       <ul>
   2553           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/Direction.html">Direction</a></li>
   2554       </ul>
   2555     </li>
   2556     
   2557     <li><h2>Exceptions</h2>
   2558       <ul>
   2559           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/StaleObjectException.html">StaleObjectException</a></li>
   2560           <li class="api apilevel-"><a href="/reference/android/support/test/uiautomator/UiObjectNotFoundException.html">UiObjectNotFoundException</a></li>
   2561       </ul>
   2562     </li>
   2563     
   2564   </ul>
   2565   
   2566 </div>
   2567 
   2568 
   2569 
   2570 </body>
   2571 </html>
   2572