Codeception / Codeception/module-playwright
waitForJS doesn't work like Webdriver
未关闭
- 主要语言
- 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'");`
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。