android - Select text inside edittext in Espresso -
i want select text inside edittext can check copy , paste option using espresso. have tried ,
onview(withtext("text")).perform(longclick()); this perform long click in edittext. text not selected.
for simple "catching" part of text use hamcrest matchers containsstring(), startswith(), endswith().
although,as said, need match specific text copy , paste in place.
i think might pretty impossible test espresso. may need take action ui testing tool called uiatomator.
uiatomator, great tools made google allows test android system functions notifications, screen lock or copy , paste operations. it's working pretty espresso test framework.
for finding more info, please read article:
http://qathread.blogspot.com/2015/05/espresso-uiautomator-perfect-tandem.html
and uiautomator documentation, find here.
hope help.
Comments
Post a Comment