We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e58d9a commit 6d6e84eCopy full SHA for 6d6e84e
1 file changed
src/test/java/com/flowingcode/vaadin/addons/xterm/integration/XTermElement.java
@@ -2,7 +2,7 @@
2
* #%L
3
* XTerm Console Addon
4
* %%
5
- * Copyright (C) 2020 - 2023 Flowing Code
+ * Copyright (C) 2020 - 2026 Flowing Code
6
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
@@ -86,6 +86,11 @@ public void setPrompt(String value) {
86
@Override
87
public void sendKeys(CharSequence... keysToSend) {
88
input.sendKeys(keysToSend);
89
+ // Wait for terminal to process writes by using a write callback
90
+ getCommandExecutor().getDriver().executeAsyncScript("""
91
+ var callback = arguments[arguments.length - 1];
92
+ arguments[0].terminal.write('', callback);
93
+ """, this);
94
}
95
96
0 commit comments