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

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -