[java] Fixing flakiness of a test in Firefox
@@ -317,7 +317,7 @@ public void testSwitchingToMissingAlertInAClosedWindowThrows() {
public void testPromptShouldUseDefaultValueIfNoKeysSent() {
driver.get(promptPage("This is a default value"));
- driver.findElement(By.id("prompt")).click();
+ wait.until(presenceOfElementLocated(By.id("prompt"))).click();
Alert alert = wait.until(alertIsPresent());
alert.accept();
