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>ReplaceTextAction</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  <a href="#pubctors">Ctors</a>
196
197
198
199
200  &#124; <a href="#pubmethods">Methods</a>
201
202
203
204
205  &#124; <a href="#inhmethods">Inherited Methods</a>
206
207&#124; <a href="#" onclick="return toggleAllClassInherited()" id="toggleAllClassInherited">[Expand All]</a>
208
209</div><!-- end sum-details-links -->
210</div><!-- end api-info-block -->
211
212<div class="api apilevel-" id="jd-content">
213
214<!-- ======== START OF CLASS DATA ======== -->
215
216<h1 class="api-title">ReplaceTextAction</h1>
217<p>
218<code class="api-signature">
219  public
220
221  final
222
223  class
224  ReplaceTextAction
225</code>
226<br>
227
228
229<code class="api-signature">
230
231    extends Object
232
233
234
235</code>
236
237<code class="api-signature">
238
239
240      implements
241
242        <a href="/reference/android/support/test/espresso/ViewAction.html">ViewAction</a>
243
244
245
246</code>
247
248</p><table class="jd-inheritance-table">
249
250
251  <tr>
252
253    <td colspan="2" class="jd-inheritance-class-cell">java.lang.Object
254    </td>
255  </tr>
256
257
258  <tr>
259
260      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
261
262    <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.action.ReplaceTextAction
263    </td>
264  </tr>
265
266
267</table>
268
269
270
271
272<br><hr>
273
274
275  <p>Replaces view text by setting <code><a href="/reference/android/widget/EditText.html">EditText</a></code>s text property to given String.
276</p>
277
278
279
280
281
282
283
284<h2 class="api-section">Summary</h2>
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308<!-- ======== CONSTRUCTOR SUMMARY ======== -->
309<table id="pubctors" class="responsive constructors">
310<tr><th colspan="2"><h3>Public constructors</h3></th></tr>
311
312
313
314
315  <tr class="api apilevel-" >
316
317
318    <td width="100%">
319      <code>
320      <a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html#ReplaceTextAction(java.lang.String)">ReplaceTextAction</a>(String value)
321      </code>
322
323    </td>
324  </tr>
325
326
327
328</table>
329
330
331
332
333
334
335<!-- ========== METHOD SUMMARY =========== -->
336<table id="pubmethods" class="responsive methods">
337<tr><th colspan="2"><h3>Public methods</h3></th></tr>
338
339
340
341
342  <tr class="api apilevel-" >
343
344
345    <td><code>
346
347
348
349
350
351        Matcher&lt;View&gt;</code>
352    </td>
353
354    <td width="100%">
355      <code>
356      <a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html#getConstraints()">getConstraints</a>()
357      </code>
358
359        <p>A mechanism for ViewActions to specify what type of views they can operate on.
360
361
362</p>
363
364    </td>
365  </tr>
366
367
368
369  <tr class="api apilevel-" >
370
371
372    <td><code>
373
374
375
376
377
378        String</code>
379    </td>
380
381    <td width="100%">
382      <code>
383      <a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html#getDescription()">getDescription</a>()
384      </code>
385
386        <p>Returns a description of the view action.
387
388
389</p>
390
391    </td>
392  </tr>
393
394
395
396  <tr class="api apilevel-" >
397
398
399    <td><code>
400
401
402
403
404
405        void</code>
406    </td>
407
408    <td width="100%">
409      <code>
410      <a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html#perform(android.support.test.espresso.UiController, android.view.View)">perform</a>(<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, View view)
411      </code>
412
413        <p>Performs this action on the given view.
414
415
416</p>
417
418    </td>
419  </tr>
420
421
422
423</table>
424
425
426
427
428
429
430
431<!-- ========== METHOD SUMMARY =========== -->
432<table id="inhmethods" class="methods inhtable">
433<tr><th><h3>Inherited methods</h3></th></tr>
434
435
436<tr class="api apilevel-" >
437<td colspan="2">
438
439  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-java.lang.Object" class="jd-expando-trigger closed"
440          ><img height="34" id="inherited-methods-java.lang.Object-trigger"
441          src="/assets/images/styles/disclosure_down.png"
442          class="jd-expando-trigger-img" /></a>From
443class
444<code>
445
446    java.lang.Object
447
448</code>
449<div id="inherited-methods-java.lang.Object">
450  <div id="inherited-methods-java.lang.Object-list"
451        class="jd-inheritedlinks">
452  </div>
453  <div id="inherited-methods-java.lang.Object-summary" style="display: none;">
454    <table class="jd-sumtable-expando responsive">
455
456
457
458
459  <tr class="api apilevel-" >
460
461
462    <td><code>
463
464
465
466
467
468        Object</code>
469    </td>
470
471    <td width="100%">
472      <code>
473      clone()
474      </code>
475
476    </td>
477  </tr>
478
479
480
481  <tr class="api apilevel-" >
482
483
484    <td><code>
485
486
487
488
489
490        boolean</code>
491    </td>
492
493    <td width="100%">
494      <code>
495      equals(Object arg0)
496      </code>
497
498    </td>
499  </tr>
500
501
502
503  <tr class="api apilevel-" >
504
505
506    <td><code>
507
508
509
510
511
512        void</code>
513    </td>
514
515    <td width="100%">
516      <code>
517      finalize()
518      </code>
519
520    </td>
521  </tr>
522
523
524
525  <tr class="api apilevel-" >
526
527
528    <td><code>
529
530
531
532        final
533
534        Class&lt;?&gt;</code>
535    </td>
536
537    <td width="100%">
538      <code>
539      getClass()
540      </code>
541
542    </td>
543  </tr>
544
545
546
547  <tr class="api apilevel-" >
548
549
550    <td><code>
551
552
553
554
555
556        int</code>
557    </td>
558
559    <td width="100%">
560      <code>
561      hashCode()
562      </code>
563
564    </td>
565  </tr>
566
567
568
569  <tr class="api apilevel-" >
570
571
572    <td><code>
573
574
575
576        final
577
578        void</code>
579    </td>
580
581    <td width="100%">
582      <code>
583      notify()
584      </code>
585
586    </td>
587  </tr>
588
589
590
591  <tr class="api apilevel-" >
592
593
594    <td><code>
595
596
597
598        final
599
600        void</code>
601    </td>
602
603    <td width="100%">
604      <code>
605      notifyAll()
606      </code>
607
608    </td>
609  </tr>
610
611
612
613  <tr class="api apilevel-" >
614
615
616    <td><code>
617
618
619
620
621
622        String</code>
623    </td>
624
625    <td width="100%">
626      <code>
627      toString()
628      </code>
629
630    </td>
631  </tr>
632
633
634
635  <tr class="api apilevel-" >
636
637
638    <td><code>
639
640
641
642        final
643
644        void</code>
645    </td>
646
647    <td width="100%">
648      <code>
649      wait(long arg0, int arg1)
650      </code>
651
652    </td>
653  </tr>
654
655
656
657  <tr class="api apilevel-" >
658
659
660    <td><code>
661
662
663
664        final
665
666        void</code>
667    </td>
668
669    <td width="100%">
670      <code>
671      wait(long arg0)
672      </code>
673
674    </td>
675  </tr>
676
677
678
679  <tr class="api apilevel-" >
680
681
682    <td><code>
683
684
685
686        final
687
688        void</code>
689    </td>
690
691    <td width="100%">
692      <code>
693      wait()
694      </code>
695
696    </td>
697  </tr>
698
699
700
701    </table>
702  </div>
703</div>
704</td></tr>
705
706
707
708<tr class="api apilevel-" >
709<td colspan="2">
710
711  <a href="#" onclick="return toggleInherited(this, null)" id="inherited-methods-android.support.test.espresso.ViewAction" class="jd-expando-trigger closed"
712          ><img height="34" id="inherited-methods-android.support.test.espresso.ViewAction-trigger"
713          src="/assets/images/styles/disclosure_down.png"
714          class="jd-expando-trigger-img" /></a>From
715interface
716<code>
717
718    <a href="/reference/android/support/test/espresso/ViewAction.html">android.support.test.espresso.ViewAction</a>
719
720</code>
721<div id="inherited-methods-android.support.test.espresso.ViewAction">
722  <div id="inherited-methods-android.support.test.espresso.ViewAction-list"
723        class="jd-inheritedlinks">
724  </div>
725  <div id="inherited-methods-android.support.test.espresso.ViewAction-summary" style="display: none;">
726    <table class="jd-sumtable-expando responsive">
727
728
729
730
731  <tr class="api apilevel-" >
732
733
734    <td><code>
735        abstract
736
737
738
739
740        Matcher&lt;View&gt;</code>
741    </td>
742
743    <td width="100%">
744      <code>
745      <a href="/reference/android/support/test/espresso/ViewAction.html#getConstraints()">getConstraints</a>()
746      </code>
747
748        <p>A mechanism for ViewActions to specify what type of views they can operate on.
749
750
751</p>
752
753    </td>
754  </tr>
755
756
757
758  <tr class="api apilevel-" >
759
760
761    <td><code>
762        abstract
763
764
765
766
767        String</code>
768    </td>
769
770    <td width="100%">
771      <code>
772      <a href="/reference/android/support/test/espresso/ViewAction.html#getDescription()">getDescription</a>()
773      </code>
774
775        <p>Returns a description of the view action.
776
777
778</p>
779
780    </td>
781  </tr>
782
783
784
785  <tr class="api apilevel-" >
786
787
788    <td><code>
789        abstract
790
791
792
793
794        void</code>
795    </td>
796
797    <td width="100%">
798      <code>
799      <a href="/reference/android/support/test/espresso/ViewAction.html#perform(android.support.test.espresso.UiController, android.view.View)">perform</a>(<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController, View view)
800      </code>
801
802        <p>Performs this action on the given view.
803
804
805</p>
806
807    </td>
808  </tr>
809
810
811
812    </table>
813  </div>
814</div>
815</td></tr>
816
817
818</table>
819
820
821
822<!-- XML Attributes -->
823
824
825<!-- Enum Values -->
826
827
828<!-- Constants -->
829
830
831<!-- Fields -->
832
833
834<!-- Public ctors -->
835
836
837<!-- ========= CONSTRUCTOR DETAIL ======== -->
838<h2 class="api-section">Public constructors</h2>
839
840
841
842<A NAME="ReplaceTextAction(java.lang.String)"></A>
843
844<div class="api apilevel-">
845    <h3 class="api-name">ReplaceTextAction</h3>
846    <div class="api-level">
847      <div></div>
848
849
850
851    </div>
852<pre class="api-signature no-pretty-print">
853ReplaceTextAction (String value)</pre>
854
855
856
857
858  <p></p>
859    <table class="responsive">
860    <tr><th colspan=2>Parameters</th></tr>
861      <tr>
862        <td><code>value</code></td>
863        <td width="100%">
864          <code>String</code>
865          <!-- no parameter comment --></td>
866      </tr>
867    </table>
868
869</div>
870
871
872
873
874
875<!-- ========= CONSTRUCTOR DETAIL ======== -->
876<!-- Protected ctors -->
877
878
879
880<!-- ========= METHOD DETAIL ======== -->
881<!-- Public methdos -->
882
883<h2 class="api-section">Public methods</h2>
884
885
886
887<A NAME="getConstraints()"></A>
888
889<div class="api apilevel-">
890    <h3 class="api-name">getConstraints</h3>
891    <div class="api-level">
892      <div></div>
893
894
895
896    </div>
897<pre class="api-signature no-pretty-print">
898Matcher&lt;View&gt; getConstraints ()</pre>
899
900
901
902
903  <p>A mechanism for ViewActions to specify what type of views they can operate on.
904
905 A ViewAction can demand that the view passed to perform meets certain constraints. For example
906 it may want to ensure the view is already in the viewable physical screen of the device or is
907 of a certain type.</p>
908    <table class="responsive">
909      <tr><th colspan=2>Returns</th></tr>
910      <tr>
911        <td><code>Matcher&lt;View&gt;</code></td>
912        <td width="100%">a <a href="http://hamcrest.org/JavaHamcrest/javadoc/1.3/org/hamcrest/Matcher.html">
913     <code>Matcher</code></a> that will be tested prior to calling perform.
914</td>
915      </tr>
916    </table>
917
918</div>
919
920
921<A NAME="getDescription()"></A>
922
923<div class="api apilevel-">
924    <h3 class="api-name">getDescription</h3>
925    <div class="api-level">
926      <div></div>
927
928
929
930    </div>
931<pre class="api-signature no-pretty-print">
932String getDescription ()</pre>
933
934
935
936
937  <p>Returns a description of the view action. The description should not be overly long and should
938 fit nicely in a sentence like: "performing %description% action on view with id ..."
939</p>
940    <table class="responsive">
941      <tr><th colspan=2>Returns</th></tr>
942      <tr>
943        <td><code>String</code></td>
944        <td width="100%"><!-- no returns description in source --></td>
945      </tr>
946    </table>
947
948</div>
949
950
951<A NAME="perform(android.support.test.espresso.UiController, android.view.View)"></A>
952
953<div class="api apilevel-">
954    <h3 class="api-name">perform</h3>
955    <div class="api-level">
956      <div></div>
957
958
959
960    </div>
961<pre class="api-signature no-pretty-print">
962void perform (<a href="/reference/android/support/test/espresso/UiController.html">UiController</a> uiController,
963                View view)</pre>
964
965
966
967
968  <p>Performs this action on the given view.</p>
969    <table class="responsive">
970    <tr><th colspan=2>Parameters</th></tr>
971      <tr>
972        <td><code>uiController</code></td>
973        <td width="100%">
974          <code>UiController</code>:
975          the controller to use to interact with the UI.</td>
976      </tr>
977      <tr>
978        <td><code>view</code></td>
979        <td width="100%">
980          <code>View</code>:
981          the view to act upon. never null.
982</td>
983      </tr>
984    </table>
985
986</div>
987
988
989
990
991
992<!-- ========= METHOD DETAIL ======== -->
993
994
995
996<!-- ========= END OF CLASS DATA ========= -->
997
998</div><!-- end jd-content -->
999
1000
1001
1002<div class="data-reference-resources-wrapper">
1003
1004  <ul data-reference-resources>
1005
1006
1007    <li><h2>Interfaces</h2>
1008      <ul>
1009          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.html">AdapterViewProtocol</a></li>
1010          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.DataFunction.html">AdapterViewProtocol.DataFunction</a></li>
1011          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CoordinatesProvider.html">CoordinatesProvider</a></li>
1012          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/PrecisionDescriber.html">PrecisionDescriber</a></li>
1013          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.html">Swiper</a></li>
1014          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.html">Tapper</a></li>
1015      </ul>
1016    </li>
1017
1018    <li><h2>Classes</h2>
1019      <ul>
1020          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterDataLoaderAction.html">AdapterDataLoaderAction</a></li>
1021          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.html">AdapterViewProtocol.AdaptedData</a></li>
1022          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocol.AdaptedData.Builder.html">AdapterViewProtocol.AdaptedData.Builder</a></li>
1023          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/AdapterViewProtocols.html">AdapterViewProtocols</a></li>
1024          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/CloseKeyboardAction.html">CloseKeyboardAction</a></li>
1025          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EditorAction.html">EditorAction</a></li>
1026          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.html">EspressoKey</a></li>
1027          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/EspressoKey.Builder.html">EspressoKey.Builder</a></li>
1028          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralClickAction.html">GeneralClickAction</a></li>
1029          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralSwipeAction.html">GeneralSwipeAction</a></li>
1030          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/KeyEventAction.html">KeyEventAction</a></li>
1031          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.html">MotionEvents</a></li>
1032          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/MotionEvents.DownResultHolder.html">MotionEvents.DownResultHolder</a></li>
1033          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/OpenLinkAction.html">OpenLinkAction</a></li>
1034          <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/action/ReplaceTextAction.html">ReplaceTextAction</a></li>
1035          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ScrollToAction.html">ScrollToAction</a></li>
1036          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/TypeTextAction.html">TypeTextAction</a></li>
1037          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/ViewActions.html">ViewActions</a></li>
1038      </ul>
1039    </li>
1040
1041    <li><h2>Enums</h2>
1042      <ul>
1043          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/GeneralLocation.html">GeneralLocation</a></li>
1044          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Press.html">Press</a></li>
1045          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swipe.html">Swipe</a></li>
1046          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Swiper.Status.html">Swiper.Status</a></li>
1047          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tap.html">Tap</a></li>
1048          <li class="api apilevel-"><a href="/reference/android/support/test/espresso/action/Tapper.Status.html">Tapper.Status</a></li>
1049      </ul>
1050    </li>
1051
1052
1053  </ul>
1054
1055</div>
1056
1057
1058
1059</body>
1060</html>
1061