0
현재 응용 프로그램을 테스트하기 위해 Codeception 2.2를 사용하고 있습니다. 내가 지금까지 가지고있는 단계는 다음과 같습니다.팝업을 받아들이는 코드 수락 테스트
<?php
$I = new AcceptanceTester($scenario);
$I->wantTo('perform actions and see result');
$I->amOnPage('/index.php');
$I->fillField('username', 'admin');
$I->fillField('password', 'password');
$I->click('Sign in');
$I->amOnPage('/index.php?module=CustomReports&view=Edit');
$I->fillField('relatedclient', '******');
$I->fillField('policynumber', '****');
$I->click('Save');
$I->see('You are being redirected to the clients isa report.');
$I->click('OK'); // This is where it fails
$I->see('Client ISA Statement');
?>
현재 오류가 발생하는 인라인 JS와 함께 PHP를 사용하고 있습니다. 다음 페이지로 이동하기 위해 어떻게하면 창을 허용 할 수 있는지 궁금합니다. 내가 시도한 $I->click('OK')
하지만 그 작동하지 않는 것.
감사합니다.