-
Notifications
You must be signed in to change notification settings - Fork 3
Open
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 (<anonymous>)
at UtilityScript.evaluate (<anonymous>:234:30)
at UtilityScript.<anonymous> (<anonymous>: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'");
Metadata
Metadata
Assignees
Labels
No labels