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>ElementReference</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 177 178 179 180 181 182 183<div class="sum-details-links"> 184 185Summary: 186 187 188 189 190 191 192 193 194 195 196 197 <a href="#pubmethods">Methods</a> 198 199 200 201 202 | <a href="#inhmethods">Inherited Methods</a> 203 204| <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a> 205 206</div><!-- end sum-details-links --> 207</div><!-- end api-info-block --> 208 209<div class="api apilevel-" id="jd-content"> 210 211<!-- ======== START OF CLASS DATA ======== --> 212 213<h1 class="api-title">ElementReference</h1> 214<p> 215<code class="api-signature"> 216 public 217 218 final 219 220 class 221 ElementReference 222</code> 223<br> 224 225 226<code class="api-signature"> 227 228 extends Object 229 230 231 232</code> 233 234<code class="api-signature"> 235 236 237 implements 238 239 <a href="/reference/android/support/test/espresso/web/model/JSONAble.html">JSONAble</a> 240 241 242 243</code> 244 245</p><table class="jd-inheritance-table"> 246 247 248 <tr> 249 250 <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object 251 </td> 252 </tr> 253 254 255 <tr> 256 257 <td class="jd-inheritance-space"> ↳</td> 258 259 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.web.model.ElementReference 260 </td> 261 </tr> 262 263 264</table> 265 266 267 268 269<br><hr> 270 271 272 <p>A reference to a javascript element existing within a WebView. 273 274 <p>This reference is only a pointer to data held within the javascript context 275 of a given WebView. It may no longer be valid the next time you attempt to 276 use it. For instance the page could be navigated away from. There is not much 277 you can use an ElementReference for in Java, it exists primarily to pass back 278 to a WebView for further action. 279</p> 280 281 282 283 284 285 286 287<h2 class="api-section">Summary</h2> 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315<!-- ========== METHOD SUMMARY =========== --> 316<table id="pubmethods" class="responsive methods"> 317<tr><th colspan="2"><h3>Public methods</h3></th></tr> 318 319 320 321 322 <tr class="api apilevel-" > 323 324 325 <td><code> 326 327 328 329 330 331 boolean</code> 332 </td> 333 334 <td width="100%"> 335 <code> 336 <a href="/reference/android/support/test/espresso/web/model/ElementReference.html#equals(java.lang.Object)">equals</a>(Object other) 337 </code> 338 339 </td> 340 </tr> 341 342 343 344 <tr class="api apilevel-" > 345 346 347 <td><code> 348 349 350 351 352 353 int</code> 354 </td> 355 356 <td width="100%"> 357 <code> 358 <a href="/reference/android/support/test/espresso/web/model/ElementReference.html#hashCode()">hashCode</a>() 359 </code> 360 361 </td> 362 </tr> 363 364 365 366 <tr class="api apilevel-" > 367 368 369 <td><code> 370 371 372 373 374 375 String</code> 376 </td> 377 378 <td width="100%"> 379 <code> 380 <a href="/reference/android/support/test/espresso/web/model/ElementReference.html#toJSONString()">toJSONString</a>() 381 </code> 382 383 </td> 384 </tr> 385 386 387 388 <tr class="api apilevel-" > 389 390 391 <td><code> 392 393 394 395 396 397 String</code> 398 </td> 399 400 <td width="100%"> 401 <code> 402 <a href="/reference/android/support/test/espresso/web/model/ElementReference.html#toString()">toString</a>() 403 </code> 404 405 </td> 406 </tr> 407 408 409 410</table> 411 412 413 414 415 416 417 418<!-- ========== METHOD SUMMARY =========== --> 419<table id="inhmethods" class="methods inhtable"> 420<tr><th><h3>Inherited methods</h3></th></tr> 421 422 423<tr class="api apilevel-" > 424<td colspan="2"> 425 426 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed" 427 ><img height="34" id="inherited-methods-java.lang.Object-trigger" 428 src="/assets/images/styles/disclosure_down.png" 429 class="jd-expando-trigger-img" /></a>From 430class 431<code> 432 433 java.lang.Object 434 435</code> 436<div id="inherited-methods-java.lang.Object"> 437 <div id="inherited-methods-java.lang.Object-list" 438 class="jd-inheritedlinks"> 439 </div> 440 <div id="inherited-methods-java.lang.Object-summary" style="display: none;"> 441 <table class="jd-sumtable-expando responsive"> 442 443 444 445 446 <tr class="api apilevel-" > 447 448 449 <td><code> 450 451 452 453 454 455 Object</code> 456 </td> 457 458 <td width="100%"> 459 <code> 460 clone() 461 </code> 462 463 </td> 464 </tr> 465 466 467 468 <tr class="api apilevel-" > 469 470 471 <td><code> 472 473 474 475 476 477 boolean</code> 478 </td> 479 480 <td width="100%"> 481 <code> 482 equals(Object arg0) 483 </code> 484 485 </td> 486 </tr> 487 488 489 490 <tr class="api apilevel-" > 491 492 493 <td><code> 494 495 496 497 498 499 void</code> 500 </td> 501 502 <td width="100%"> 503 <code> 504 finalize() 505 </code> 506 507 </td> 508 </tr> 509 510 511 512 <tr class="api apilevel-" > 513 514 515 <td><code> 516 517 518 519 final 520 521 Class<?></code> 522 </td> 523 524 <td width="100%"> 525 <code> 526 getClass() 527 </code> 528 529 </td> 530 </tr> 531 532 533 534 <tr class="api apilevel-" > 535 536 537 <td><code> 538 539 540 541 542 543 int</code> 544 </td> 545 546 <td width="100%"> 547 <code> 548 hashCode() 549 </code> 550 551 </td> 552 </tr> 553 554 555 556 <tr class="api apilevel-" > 557 558 559 <td><code> 560 561 562 563 final 564 565 void</code> 566 </td> 567 568 <td width="100%"> 569 <code> 570 notify() 571 </code> 572 573 </td> 574 </tr> 575 576 577 578 <tr class="api apilevel-" > 579 580 581 <td><code> 582 583 584 585 final 586 587 void</code> 588 </td> 589 590 <td width="100%"> 591 <code> 592 notifyAll() 593 </code> 594 595 </td> 596 </tr> 597 598 599 600 <tr class="api apilevel-" > 601 602 603 <td><code> 604 605 606 607 608 609 String</code> 610 </td> 611 612 <td width="100%"> 613 <code> 614 toString() 615 </code> 616 617 </td> 618 </tr> 619 620 621 622 <tr class="api apilevel-" > 623 624 625 <td><code> 626 627 628 629 final 630 631 void</code> 632 </td> 633 634 <td width="100%"> 635 <code> 636 wait(long arg0, int arg1) 637 </code> 638 639 </td> 640 </tr> 641 642 643 644 <tr class="api apilevel-" > 645 646 647 <td><code> 648 649 650 651 final 652 653 void</code> 654 </td> 655 656 <td width="100%"> 657 <code> 658 wait(long arg0) 659 </code> 660 661 </td> 662 </tr> 663 664 665 666 <tr class="api apilevel-" > 667 668 669 <td><code> 670 671 672 673 final 674 675 void</code> 676 </td> 677 678 <td width="100%"> 679 <code> 680 wait() 681 </code> 682 683 </td> 684 </tr> 685 686 687 688 </table> 689 </div> 690</div> 691</td></tr> 692 693 694 695<tr class="api apilevel-" > 696<td colspan="2"> 697 698 <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.espresso.web.model.JSONAble" class="jd-expando-trigger closed" 699 ><img height="34" id="inherited-methods-android.support.test.espresso.web.model.JSONAble-trigger" 700 src="/assets/images/styles/disclosure_down.png" 701 class="jd-expando-trigger-img" /></a>From 702interface 703<code> 704 705 <a href="/reference/android/support/test/espresso/web/model/JSONAble.html">android.support.test.espresso.web.model.JSONAble</a> 706 707</code> 708<div id="inherited-methods-android.support.test.espresso.web.model.JSONAble"> 709 <div id="inherited-methods-android.support.test.espresso.web.model.JSONAble-list" 710 class="jd-inheritedlinks"> 711 </div> 712 <div id="inherited-methods-android.support.test.espresso.web.model.JSONAble-summary" style="display: none;"> 713 <table class="jd-sumtable-expando responsive"> 714 715 716 717 718 <tr class="api apilevel-" > 719 720 721 <td><code> 722 abstract 723 724 725 726 727 String</code> 728 </td> 729 730 <td width="100%"> 731 <code> 732 <a href="/reference/android/support/test/espresso/web/model/JSONAble.html#toJSONString()">toJSONString</a>() 733 </code> 734 735 </td> 736 </tr> 737 738 739 740 </table> 741 </div> 742</div> 743</td></tr> 744 745 746</table> 747 748 749 750<!-- XML Attributes --> 751 752 753<!-- Enum Values --> 754 755 756<!-- Constants --> 757 758 759<!-- Fields --> 760 761 762<!-- Public ctors --> 763 764 765 766<!-- ========= CONSTRUCTOR DETAIL ======== --> 767<!-- Protected ctors --> 768 769 770 771<!-- ========= METHOD DETAIL ======== --> 772<!-- Public methdos --> 773 774<h2 class="api-section">Public methods</h2> 775 776 777 778<A NAME="equals(java.lang.Object)"></A> 779 780<div class="api apilevel-"> 781 <h3 class="api-name">equals</h3> 782 <div class="api-level"> 783 <div></div> 784 785 786 787 </div> 788<pre class="api-signature no-pretty-print"> 789boolean equals (Object other)</pre> 790 791 792 793 794 <p></p> 795 <table class="responsive"> 796 <tr><th colspan=2>Parameters</th></tr> 797 <tr> 798 <td><code>other</code></td> 799 <td width="100%"> 800 <code>Object</code> 801 <!-- no parameter comment --></td> 802 </tr> 803 </table> 804 <table class="responsive"> 805 <tr><th colspan=2>Returns</th></tr> 806 <tr> 807 <td><code>boolean</code></td> 808 <td width="100%"><!-- no returns description in source --></td> 809 </tr> 810 </table> 811 812</div> 813 814 815<A NAME="hashCode()"></A> 816 817<div class="api apilevel-"> 818 <h3 class="api-name">hashCode</h3> 819 <div class="api-level"> 820 <div></div> 821 822 823 824 </div> 825<pre class="api-signature no-pretty-print"> 826int hashCode ()</pre> 827 828 829 830 831 <p></p> 832 <table class="responsive"> 833 <tr><th colspan=2>Returns</th></tr> 834 <tr> 835 <td><code>int</code></td> 836 <td width="100%"><!-- no returns description in source --></td> 837 </tr> 838 </table> 839 840</div> 841 842 843<A NAME="toJSONString()"></A> 844 845<div class="api apilevel-"> 846 <h3 class="api-name">toJSONString</h3> 847 <div class="api-level"> 848 <div></div> 849 850 851 852 </div> 853<pre class="api-signature no-pretty-print"> 854String toJSONString ()</pre> 855 856 857 858 859 <p></p> 860 <table class="responsive"> 861 <tr><th colspan=2>Returns</th></tr> 862 <tr> 863 <td><code>String</code></td> 864 <td width="100%"><!-- no returns description in source --></td> 865 </tr> 866 </table> 867 868</div> 869 870 871<A NAME="toString()"></A> 872 873<div class="api apilevel-"> 874 <h3 class="api-name">toString</h3> 875 <div class="api-level"> 876 <div></div> 877 878 879 880 </div> 881<pre class="api-signature no-pretty-print"> 882String toString ()</pre> 883 884 885 886 887 <p></p> 888 <table class="responsive"> 889 <tr><th colspan=2>Returns</th></tr> 890 <tr> 891 <td><code>String</code></td> 892 <td width="100%"><!-- no returns description in source --></td> 893 </tr> 894 </table> 895 896</div> 897 898 899 900 901 902<!-- ========= METHOD DETAIL ======== --> 903 904 905 906<!-- ========= END OF CLASS DATA ========= --> 907 908</div><!-- end jd-content --> 909 910 911 912<div class="data-reference-resources-wrapper"> 913 914 <ul data-reference-resources> 915 916 917 <li><h2>Interfaces</h2> 918 <ul> 919 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/Atom.html">Atom</a></li> 920 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/JSONAble.html">JSONAble</a></li> 921 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/JSONAble.DeJSONFactory.html">JSONAble.DeJSONFactory</a></li> 922 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/TransformingAtom.Transformer.html">TransformingAtom.Transformer</a></li> 923 </ul> 924 </li> 925 926 <li><h2>Classes</h2> 927 <ul> 928 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/Atoms.html">Atoms</a></li> 929 <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/web/model/ElementReference.html">ElementReference</a></li> 930 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/Evaluation.html">Evaluation</a></li> 931 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/ModelCodec.html">ModelCodec</a></li> 932 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/SimpleAtom.html">SimpleAtom</a></li> 933 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/TransformingAtom.html">TransformingAtom</a></li> 934 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/WindowReference.html">WindowReference</a></li> 935 </ul> 936 </li> 937 938 <li><h2>Enums</h2> 939 <ul> 940 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/SimpleAtom.ElementReferencePlacement.html">SimpleAtom.ElementReferencePlacement</a></li> 941 </ul> 942 </li> 943 944 945 </ul> 946 947</div> 948 949 950 951</body> 952</html> 953