79115512

Date: 2024-10-22 19:37:07
Score: 0.5
Natty:
Report link

Use tryto[functionname]. try to in front of the function name doesn't cause codeception to return an error if its not found.

if ($I->tryToSeeElement('.alert')) {
    $I->waitForText('Do you accept cookies?');
    $I->click('Yes');
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Spoo