Eine Frage in die Kommandozeile tippen und abschicken.
(page, question)
| 452 | |
| 453 | /** Eine Frage in die Kommandozeile tippen und abschicken. */ |
| 454 | async function askInLine(page, question) { |
| 455 | const input = page.locator('[data-testid="atlas-command-input"]'); |
| 456 | await input.click(); |
| 457 | await input.fill(''); |
| 458 | await input.pressSequentially(question, { delay: 25 }); |
| 459 | await page.keyboard.press('Enter'); |
| 460 | await page.waitForTimeout(500); |
| 461 | } |
| 462 | |
| 463 | async function main() { |
| 464 | const totalStarted = Date.now(); |