Codeception / Codeception/module-playwright
waitForJS doesn't work like Webdriver
Abierto
- Lenguaje dominante
- PHP
- Estrellas
- 10
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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'");`
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.