NoSuchElementFound - ProgressBar

Hi friends,
Question is: if progress bar is visible when i upload image from camera or gallery == image uploaded successfully.
else image not uploaded.

Here am not able locate element , getting error can any one help on this will be appreciated.


can you try like this

boolean flag=false;
new WebDriverWait(driver, 60).until(ExpectedConditions.invisibilityOfElementLocated(By.className(“android.widget.ProgressBar”)));
System.out.println(“Image uploaded”);
catch (TimeoutException e)
System.out.println(“Image not uploaded in 60 sec”);

		if(flag && next.isEnabled())
		System.out.println("next button is not clickable");		
1 Like


It Worked thanks for the solution.

Keep Helping Others, Cheers!