{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1372","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1372/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1372/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1372/events","html_url":"https://github.com/Codeception/Codeception/issues/1372","id":41831529,"number":1372,"title":"Unable to interact with window popups using PhantomJS","user":{"login":"grantlucas","id":215729,"avatar_url":"https://avatars.githubusercontent.com/u/215729?v=3","gravatar_id":"","url":"https://api.github.com/users/grantlucas","html_url":"https://github.com/grantlucas","followers_url":"https://api.github.com/users/grantlucas/followers","following_url":"https://api.github.com/users/grantlucas/following{/other_user}","gists_url":"https://api.github.com/users/grantlucas/gists{/gist_id}","starred_url":"https://api.github.com/users/grantlucas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantlucas/subscriptions","organizations_url":"https://api.github.com/users/grantlucas/orgs","repos_url":"https://api.github.com/users/grantlucas/repos","events_url":"https://api.github.com/users/grantlucas/events{/privacy}","received_events_url":"https://api.github.com/users/grantlucas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-09-03T15:48:51Z","updated_at":"2015-12-20T18:11:25Z","closed_at":"2014-09-03T22:10:05Z","body":"**I'm not 100% sure if this is a Codeception issue but I figured this would be a good place to start**\r\n\r\n## Issue\r\n\r\nI came across an issue where I'm unable to interact with a `window.confirm` when using PhantomJS with the WebDriver module.\r\n\r\nUsing the exact same test with a manually started Selenium server and Firefox works as expected.\r\n\r\n## Example\r\n\r\nI've set up a repository for Codeception tests and have a branch, [failingPopup](https://github.com/grantlucas/codeception_testing/tree/failingPopup) that has everything set up to reproduce the issue. It also mirrors the setup I'm using in my project.\r\n\r\nThe [Popup acceptance test](https://github.com/grantlucas/codeception_testing/blob/54d06ac29b4e11b1cf0c63a0b6aee69d233f181c/tests/acceptance/PopupCept.php) manually creates a `window.confirm` popup and tries to confirm text within and then accepts the popup.\r\n\r\nThis test works as expected with Firefox+Selenium but fails when using PhantomJS\r\n\r\n-------------\r\n\r\nAny help on this is greatly appreciated. Since you know what exactly Codeception is doing behind the scenes you may think that this issue is better suited for one of the other parts involved, like PhantomJS or WebDriver. Please let me know if this is should be posted elsewhere. I just wanted to check if it might be a Codeception issue first."},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/166141928","html_url":"https://github.com/Codeception/Codeception/issues/1372#issuecomment-166141928","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/1372","id":166141928,"user":{"login":"janeberets","id":11008687,"avatar_url":"https://avatars.githubusercontent.com/u/11008687?v=3","gravatar_id":"","url":"https://api.github.com/users/janeberets","html_url":"https://github.com/janeberets","followers_url":"https://api.github.com/users/janeberets/followers","following_url":"https://api.github.com/users/janeberets/following{/other_user}","gists_url":"https://api.github.com/users/janeberets/gists{/gist_id}","starred_url":"https://api.github.com/users/janeberets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janeberets/subscriptions","organizations_url":"https://api.github.com/users/janeberets/orgs","repos_url":"https://api.github.com/users/janeberets/repos","events_url":"https://api.github.com/users/janeberets/events{/privacy}","received_events_url":"https://api.github.com/users/janeberets/received_events","type":"User","site_admin":false},"created_at":"2015-12-20T18:11:24Z","updated_at":"2015-12-20T18:11:24Z","body":"Can You help me to write \"executeJs\" action for accept popup using phantomJS?"}}