我需要验证是否选择了 TextView。这是对象:
TextView{
id=2131230879,
res-name=title,
visibility=VISIBLE,
width=101,
height=144,
has-focus=false,
has-focusable=false,
has-window-focus=true,
is-clickable=false,
is-enabled=true,
is-focused=false,
is-focusable=false,
is-layout-requested=false,
is-selected=true,
root-is-layout-requested=false,
has-input-connection=false,
x=71.0,
y=0.0,
text=Size,
input-type=0,
ime-target=false
}
is-selected
当您选择 textview 时,从 false 变为 true。
在 Espresso 中有内置的方法吗?