Codeception / Codeception/module-playwright

waitForJS doesn't work like Webdriver

未關閉
#10 0 則留言 0 個 reaction 已指派 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 中的三個表達式重現回報的 page.evaluate SyntaxError。比較預期的 Webdriver 相容輸入與目前的行為;確立受支援的 waitForJS 形式並由回歸測試涵蓋後即完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
php, playwright
領域
testing
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。