Codeception / Codeception/module-playwright
waitForJS doesn't work like Webdriver
Ouverte
- Langage dominant
- PHP
- Étoiles
- 10
- Forks
- 4
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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'");`
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.