mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-22 16:10:50 +00:00
Fix explicit script wait APIs (#1885)
This commit is contained in:
17 files changed
+659
-30
No files matched your search
@@ -24,7 +24,7 @@ function stepsToJavaScript(steps, recordedAt) {
|
||||
}
|
||||
lines.push(` await nct.screen.sendLine(${escapeJsString(step.value)});`);
|
||||
} else if (step.type === "waitFor") {
|
||||
lines.push(` await nct.screen.waitFor(${escapeJsString(step.value)}, ${step.timeoutMs || 5000});`);
|
||||
lines.push(` await nct.screen.waitForText(${escapeJsString(step.value)}, ${step.timeoutMs || 5000});`);
|
||||
} else if (step.type === "waitForPrompt") {
|
||||
lines.push(` await nct.screen.waitForPrompt(${step.timeoutMs || 30000});`);
|
||||
} else if (step.type === "sleep") {
|
||||
|
||||
Reference in new issue
Block a user