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
Post a Comment