hi i am using below wait method to wait element to be clickable, but its not working. my script is executing till end without waiting
WebDriverWait wait = new WebDriverWait(Driver.DRIVER, 420 );
wait.until(ExpectedConditions.elementToBeClickable(By
.id("docket_thumb_image")));
System.out.println("code is not working");
scenario is book is downloading and i dont know when it will completely downloaded.
so…
there is thumbnail image where download percentage loader is displaying, and after download completes ,then i have to click on thumbnail image
Hi ,
I am trying click on the element once its available.
Usecase:
Client receives an incoming call(asynchronous) with Call End option.
Script has to wait until the “Call End” element is visible on the screen
The below code doesn’t wait until the element is visible. it’s immediately ending the execution.
Please help me.
public static WebElement inCallcheck;
inCallcheck= driver.findElementByXPath("//android.widget.Button[contains(@text,‘call end’)]");
WebDriverWait callButwait= new WebDriverWait(startServer.driver, 40);
callButwait.until(ExpectedConditions.visibilityOf(inCallcheck));