Skip to content

Commit 44cf4a4

Browse files
committed
[java] Hacky fix for the Chrome keyboard input test
1 parent f0fdb9e commit 44cf4a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

java/test/org/openqa/selenium/bidi/input/DefaultKeyboardTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,14 +201,19 @@ void canGenerateKeyboardShortcuts() {
201201
@NotYetImplemented(
202202
value = EDGE,
203203
reason = "https://github.com/GoogleChromeLabs/chromium-bidi/issues/2321")
204-
public void testSelectionSelectBySymbol() {
204+
public void testSelectionSelectBySymbol() throws InterruptedException {
205205
driver.get(appServer.whereIs("single_text_input.html"));
206206

207207
WebElement input = driver.findElement(By.id("textInput"));
208208

209209
inputModule.perform(
210210
windowHandle, getBuilder(driver).click(input).sendKeys("abc def").getSequences());
211211

212+
// TODO: The wait until condition does not wait for the attribute.
213+
// Hence this is required.
214+
// Not an ideal fix but it needs to be triaged further.
215+
Thread.sleep(5000);
216+
212217
shortWait.until(ExpectedConditions.attributeToBe(input, "value", "abc def"));
213218

214219
inputModule.perform(

0 commit comments

Comments
 (0)