Skip to content

Commit

Permalink
[py] add synchronization to flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Oct 6, 2023
1 parent b9bdff1 commit cdd71e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion java/test/org/openqa/selenium/FormHandlingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
import static org.openqa.selenium.support.ui.ExpectedConditions.alertIsPresent;
import static org.openqa.selenium.support.ui.ExpectedConditions.presenceOfElementLocated;
import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs;
import static org.openqa.selenium.testing.drivers.Browser.FIREFOX;
import static org.openqa.selenium.testing.drivers.Browser.IE;
Expand Down Expand Up @@ -215,7 +216,7 @@ void testSendingKeyboardEventsShouldAppendTextInInputs() {
@NotYetImplemented(SAFARI)
public void testSendingKeyboardEventsShouldAppendTextInInputsWithExistingValue() {
driver.get(pages.formPage);
WebElement element = driver.findElement(By.id("inputWithText"));
WebElement element = wait.until(presenceOfElementLocated(By.id("inputWithText")));
element.sendKeys(". Some text");
String value = element.getAttribute("value");

Expand Down

0 comments on commit cdd71e6

Please sign in to comment.