diff --git a/java/test/org/openqa/selenium/bidi/input/DefaultKeyboardTest.java b/java/test/org/openqa/selenium/bidi/input/DefaultKeyboardTest.java index dbab8ada2fbd4..a712881a18f7f 100644 --- a/java/test/org/openqa/selenium/bidi/input/DefaultKeyboardTest.java +++ b/java/test/org/openqa/selenium/bidi/input/DefaultKeyboardTest.java @@ -201,7 +201,7 @@ void canGenerateKeyboardShortcuts() { @NotYetImplemented( value = EDGE, reason = "https://github.com/GoogleChromeLabs/chromium-bidi/issues/2321") - public void testSelectionSelectBySymbol() { + public void testSelectionSelectBySymbol() throws InterruptedException { driver.get(appServer.whereIs("single_text_input.html")); WebElement input = driver.findElement(By.id("textInput")); @@ -209,6 +209,11 @@ public void testSelectionSelectBySymbol() { inputModule.perform( windowHandle, getBuilder(driver).click(input).sendKeys("abc def").getSequences()); + // TODO: The wait until condition does not wait for the attribute. + // Hence this is required. + // Not an ideal fix but it needs to be triaged further. + Thread.sleep(5000); + shortWait.until(ExpectedConditions.attributeToBe(input, "value", "abc def")); inputModule.perform(