Skip to content

Commit

Permalink
fix: delegate sendKeys calls to the input element (#3581)
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen authored Aug 11, 2022
1 parent 44cf53c commit 19cb2c1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
import java.util.List;
import java.util.stream.Collectors;

import org.openqa.selenium.By;

/**
* A TestBench element representing a <code>&lt;vaadin-date-picker&gt;</code>
* element.
Expand Down Expand Up @@ -209,4 +211,9 @@ public OverlayContentElement getOverlayContent() {
.$(TestBenchElement.class).id("content")
.$(OverlayContentElement.class).id("overlay-content");
}

@Override
public void sendKeys(CharSequence... keysToSend) {
findElement(By.tagName("input")).sendKeys(keysToSend);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,8 @@ public boolean isAutoOpen() {
return !getPropertyBoolean("autoOpenDisabled");
}

@Override
public void sendKeys(CharSequence... keysToSend) {
getTimePickerInputElement().sendKeys(keysToSend);
}
}

0 comments on commit 19cb2c1

Please sign in to comment.