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