Skip to content

Commit

Permalink
[java] Hacky fix for the Chrome keyboard input test
Browse files Browse the repository at this point in the history
  • Loading branch information
pujagani committed Aug 27, 2024
1 parent f0fdb9e commit 44cf4a4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,19 @@ 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"));

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(
Expand Down

0 comments on commit 44cf4a4

Please sign in to comment.