codeceptjs / codeceptjs/CodeceptJS

JavaScript prompt (window-based alert with input) auto-closes in CodeceptJS with Playwright + BDD — how to handle it?

オープン
#5,050 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
stale
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

I'm trying to handle a JavaScript prompt (window-based alert with input) dialog and input some text before accepting it. But the prompt seems to be automatically closing before I can interact with it, and the test just moves to the next step.
Any idea how to handle this properly or prevent it from being auto-dismissed? Example code or tips would be really helpful. Thanks!
im using Codeceptjs with playwright helper and BDD

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。