{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/4570","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/4570/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/4570/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/4570/events","html_url":"https://github.com/Codeception/Codeception/issues/4570","id":266011502,"number":4570,"title":"unexpected alert open on seeInPopup","user":{"login":"Agilix","id":1481082,"avatar_url":"https://avatars2.githubusercontent.com/u/1481082?v=4","gravatar_id":"","url":"https://api.github.com/users/Agilix","html_url":"https://github.com/Agilix","followers_url":"https://api.github.com/users/Agilix/followers","following_url":"https://api.github.com/users/Agilix/following{/other_user}","gists_url":"https://api.github.com/users/Agilix/gists{/gist_id}","starred_url":"https://api.github.com/users/Agilix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agilix/subscriptions","organizations_url":"https://api.github.com/users/Agilix/orgs","repos_url":"https://api.github.com/users/Agilix/repos","events_url":"https://api.github.com/users/Agilix/events{/privacy}","received_events_url":"https://api.github.com/users/Agilix/received_events","type":"User","site_admin":false},"labels":[{"id":197592570,"url":"https://api.github.com/repos/Codeception/Codeception/labels/WebDriver","name":"WebDriver","color":"bdc3c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-17T06:51:20Z","updated_at":"2017-10-17T09:12:56Z","closed_at":null,"author_association":"NONE","body":"#### What are you trying to achieve?\r\nI am testing if a popup is shown with a certain text in it.\r\n\r\n#### What do you get instead?\r\nAn exception that an unexpected alert is open.\r\n\r\n> Provide console output if related. Use `-vvv` mode for more details.\r\n\r\n```bash\r\nScenario --\r\n I am logged in as \"alan.patterson@example.com\"\r\n   I am on page \"/test-tools/connection-for-behat/alan.patterson@example.com\"\r\n I am on page \"aef/website/2/touches\"\r\n I click \"layout.touches.synchronize_container\"\r\n I accept popup\r\n ERROR\r\n\r\n\r\n\r\n  [Facebook\\WebDriver\\Exception\\UnexpectedAlertOpenException]\r\n  unexpected alert open: {Alert text : flash.touch.synchronization_container_planned}\r\n    (Session info: chrome=61.0.3163.100)\r\n    (Driver info: chromedriver=2.27.440175 (9bc1d90b8bfa4dd181fbbf769a5eb5e575574320),platform=Linux 4.10.0-35-gene\r\n  ric x86_64) (WARNING: The server did not provide any stacktrace information)\r\n  Command duration or timeout: 3 milliseconds: null\r\n  Build info: version: '3.0.1', revision: '1969d75', time: '2016-10-18 09:48:19 -0700'\r\n  System info: host: 'webcrawler-cloud', ip: '10.132.0.6', os.name: 'Linux', os.arch: 'amd64', os.version: '4.10.0-\r\n  35-generic', java.version: '1.8.0_131'\r\n  Driver info: org.openqa.selenium.chrome.ChromeDriver\r\n  Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEna\r\n  bled=false, chrome={chromedriverVersion=2.27.440175 (9bc1d90b8bfa4dd181fbbf769a5eb5e575574320), userDataDir=/tmp/\r\n  .org.chromium.Chromium.kR0r7A}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAl\r\n  erts=true, hasTouchScreen=false, version=61.0.3163.100, platform=LINUX, browserConnectionEnabled=false, nativeEve\r\n  nts=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScre\r\n  enshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=}]\r\n  Session ID: 23c4f3523e263d05fb821cf5c6b723c8\r\n```\r\n> Provide test source code if related\r\n\r\n```php\r\npublic function requestAManualSync(AcceptanceTester $I)\r\n    {\r\n        $I->wantTo('request a manual sync of the touches for a website');\r\n        $I->amLoggedInAs('alan.patterson@example.com');\r\n        $I->amOnPage('aef/website/2/touches');\r\n        $I->click('layout.touches.synchronize_container');\r\n        $I->seeInPopup('flash.touch.synchronization_container_planned');\r\n        $I->acceptPopup();\r\n    }\r\n```\r\n### Details\r\n\r\n* Codeception version: 2.3.6\r\n* PHP Version: PHP 7.0.18-0ubuntu0.16.10.1\r\n* Operating System: Ubuntu\r\n* Installation type:  Composer\r\n* Suite configuration:\r\n\r\n```yml\r\nactor: AcceptanceTester\r\nmodules:\r\n    enabled:\r\n        - WebDriver:\r\n            url: <url>\r\n            browser: chrome\r\n            host: <host>\r\n        - \\test\\Helper\\Acceptance\r\n        - Asserts\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/337169413","html_url":"https://github.com/Codeception/Codeception/issues/4570#issuecomment-337169413","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/4570","id":337169413,"user":{"login":"Agilix","id":1481082,"avatar_url":"https://avatars2.githubusercontent.com/u/1481082?v=4","gravatar_id":"","url":"https://api.github.com/users/Agilix","html_url":"https://github.com/Agilix","followers_url":"https://api.github.com/users/Agilix/followers","following_url":"https://api.github.com/users/Agilix/following{/other_user}","gists_url":"https://api.github.com/users/Agilix/gists{/gist_id}","starred_url":"https://api.github.com/users/Agilix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Agilix/subscriptions","organizations_url":"https://api.github.com/users/Agilix/orgs","repos_url":"https://api.github.com/users/Agilix/repos","events_url":"https://api.github.com/users/Agilix/events{/privacy}","received_events_url":"https://api.github.com/users/Agilix/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T09:12:56Z","updated_at":"2017-10-17T09:12:56Z","author_association":"NONE","body":"Ah I must have commented out that line. But if I use either, being `seeInPopup` or `acceptPopup` the whole test breaks with that error 😞 "}}
{"actor":{"display_login":"Agilix"}}