My page contains advance search link in which after filling the search criteria, a loader appears which loads my result on the basis of search criteria and next I need to perform delete.
My script run so fast that it doesn't wait for loader to disappear and click on delete which should not happen since their is no record which matches my search criteria.
Code which I used-
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
Anyone who can help me with wait for this kind of process.
Let me know in case of any clarification.