Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape Print pop up in codeception #1989

Closed
ghost opened this issue May 28, 2015 · 1 comment
Closed

Escape Print pop up in codeception #1989

ghost opened this issue May 28, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented May 28, 2015

i am using codeception in my case when i click on next BTN there is a print pop up apear and can not complite my test i try to use the below code :
$I->click('next');
$I->wait('5');
$I->cancelPopup('window.print');
but dose not work also i try to use cancelPopup function as below :
1- $I->cancelPopup();
2- $I->cancelPopup('window.print()');
3- $I->cancelPopup('window.print');
but same case can anyone tell me how can i escape the print popub ?

@Naktibalda
Copy link
Member

Window.print creates an OS level dialogue that no drivers should be allowed to interact with.

Drivers don't support such functionality and it isn't defined in WebDriver protocol, so there is nothing Codeception can do about it.
w3c/webdriver#1090

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants