selenium - Get content from screen after every T minutes on android phone -


what best way text of edittexts available on screen in android phone after every 5 minutes or t minutes. there way using selenium or appium or other such framework, can scrape content of current screen on android phone.

i making , android app try out same. how can done. please suggest.

can try running timer in parallel thread following details appium :

final timer timer = new timer(); // note timer has been declared final, allow use in anon. class below timer.schedule( new timertask() {     private int = 10;     public void run()     {         system.out.println("5 mins later");         list<webelement> edittexts= driver.findelements(by.xpath("//android.widget.edittext");         for(int j=0;j<edittexts.size();j++){            system.out.println("element " + j+1 + " text : " + edittexts.get(j).gettext()); //perform action want or details         }         if (--i < 1) timer.cancel(); // count down ten times, cancel     } }, 30000*10, 30000*10 //note second argument repetition (time in milli-seconds ); 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -