android - Selendroid wating for an element in native app -


i using selendroid test android application. working fine having couple of problems. 1 when app opened element loaded after sometime, using thread.sleep(); work around want use built in waiting conditions not @ working me. please if can answer helpful. implementing following code

webelement referimage = waitforelement(by.id("imageview_close"),30,driver); referimage.click();

i got answer question after more research changed above code webdriverwait wait = new webdriverwait(driver, 30); webelement element =wait.until(expectedconditions.presenceofelementlocated(by .id("imageview_close"))); element.click();


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -