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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -