I am using below ExpectedCondition
method to ensure that element disappears and my test proceeds after that
wait.until(EC.invisibility_of_element_located((By.XPATH,busyIndicator)))
What I am doing is click on save button. It will show busyindicator object. Once Save operation is done busy indicator disappears to indicate save operation is done.
Here, though busyindicator object disappears quickly from UI, but still my above webdriver command takes almost 30-40 seconds to ensure this element is removed.
Need help on 1) How to optimize above code so that it gets executed quickly 2) Other better way to ensure elements disappears.