Codeception / Codeception/module-playwright

waitForJS doesn't work like Webdriver

Abierto
#10 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.