GeneralClickAction
public final class GeneralClickAction
extends Object
implements ViewAction
java.lang.Object |
↳ |
android.support.test.espresso.action.GeneralClickAction |
启用点击视图。
Summary
Inherited methods |
From class java.lang.Object
Object |
clone() |
boolean |
equals(Object arg0) |
void |
finalize() |
final Class<?> |
getClass() |
int |
hashCode() |
final void |
notify() |
final void |
notifyAll() |
String |
toString() |
final void |
wait(long arg0, int arg1) |
final void |
wait(long arg0) |
final void |
wait() |
|
From interface android.support.test.espresso.ViewAction
|
Public constructors
GeneralClickAction
GeneralClickAction (Tapper tapper,
CoordinatesProvider coordinatesProvider,
PrecisionDescriber precisionDescriber)
Parameters |
tapper |
Tapper
|
coordinatesProvider |
CoordinatesProvider
|
precisionDescriber |
PrecisionDescriber
|
GeneralClickAction
GeneralClickAction (Tapper tapper,
CoordinatesProvider coordinatesProvider,
PrecisionDescriber precisionDescriber,
ViewAction rollbackAction)
Parameters |
tapper |
Tapper
|
coordinatesProvider |
CoordinatesProvider
|
precisionDescriber |
PrecisionDescriber
|
rollbackAction |
ViewAction
|
Public methods
getConstraints
Matcher<View> getConstraints ()
ViewActions的一种机制来指定它们可以操作的视图类型。 ViewAction可以要求传递的视图符合某些约束。 例如,它可能希望确保视图已经在设备的可视物理屏幕中或具有某种类型。
Returns |
Matcher<View> |
a Matcher that will be tested prior to calling perform. |
getDescription
String getDescription ()
返回视图操作的描述。 描述不应该太长,并且应该很好地适用于以下这样的句子:“对带ID的视图执行%description%动作...”
perform
void perform (UiController uiController,
View view)
Performs this action on the given view.
Parameters |
uiController |
UiController : the controller to use to interact with the UI. |
view |
View : the view to act upon. never null. |