Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript codeception中的转义打印弹出窗口_Javascript_Php_Popupwindow_Codeception - Fatal编程技术网

Javascript codeception中的转义打印弹出窗口

Javascript codeception中的转义打印弹出窗口,javascript,php,popupwindow,codeception,Javascript,Php,Popupwindow,Codeception,我正在使用codeception在我的情况下,当我点击下一个BTN有一个打印弹出apear,不能完成我的测试 我尝试使用以下代码: $I->click('next'); $I->wait('5'); $I->cancelPopup('window.print'); 但也不起作用,我尝试使用cancelPopup功能,如下所示: 1- $I->cancelPopup(); 2- $I->cancelPopup('window.prin

我正在使用codeception在我的情况下,当我点击下一个BTN有一个打印弹出apear,不能完成我的测试 我尝试使用以下代码:

   $I->click('next'); 
   $I->wait('5');
   $I->cancelPopup('window.print');
但也不起作用,我尝试使用cancelPopup功能,如下所示:

   1- $I->cancelPopup();
   2- $I->cancelPopup('window.print()');
   3- $I->cancelPopup('window.print');
但同样的情况下,有人能告诉我,我如何才能逃脱打印波波