Codeception / Codeception/module-playwright

waitForJS doesn't work like Webdriver

オープン
#10 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
10
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

On Webdriver I have something like that and it works:
`$I->waitForJS("return typeof App !== 'undefined';");`

But with playwright I have an error:
```
page.evaluate: SyntaxError: Illegal return statement
at eval ()
at UtilityScript.evaluate (:234:30)
at UtilityScript. (:1:44)
```

I tried different value but always an error:
`$I->waitForJS("return typeof App !== 'undefined'");`
`$I->waitForJS("typeof App !== 'undefined';");`
`$I->waitForJS("() => typeof App !== 'undefined'");`

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

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

モジュールの waitForJS エントリーポイントから開始し、issue にある3つの式を使って報告された page.evaluate SyntaxError を再現します。意図された Webdriver 互換の入力と現在の動作を比較します。サポートされる waitForJS の形式が確立され、回帰テストでカバーされた時点で完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php, playwright
領域
testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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