Using Codeception web assertions as booleans for program flow Sometimes you want to do: if($I->see('lorum ipsum')){/*do something*/} But you can’t. My response on Stack Overflow