{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/1823","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/1823/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/1823/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/1823/events","html_url":"https://github.com/Codeception/Codeception/issues/1823","id":65531988,"number":1823,"title":"attachFile does not work with PhantomJS","user":{"login":"schmitzc","id":10464,"avatar_url":"https://avatars.githubusercontent.com/u/10464?v=3","gravatar_id":"","url":"https://api.github.com/users/schmitzc","html_url":"https://github.com/schmitzc","followers_url":"https://api.github.com/users/schmitzc/followers","following_url":"https://api.github.com/users/schmitzc/following{/other_user}","gists_url":"https://api.github.com/users/schmitzc/gists{/gist_id}","starred_url":"https://api.github.com/users/schmitzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmitzc/subscriptions","organizations_url":"https://api.github.com/users/schmitzc/orgs","repos_url":"https://api.github.com/users/schmitzc/repos","events_url":"https://api.github.com/users/schmitzc/events{/privacy}","received_events_url":"https://api.github.com/users/schmitzc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeception/Codeception/labels/PhantomJS","name":"PhantomJS","color":"B2DFDB"},{"url":"https://api.github.com/repos/Codeception/Codeception/labels/WebDriver","name":"WebDriver","color":"bdc3c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-31T19:50:14Z","updated_at":"2016-01-30T21:08:39Z","closed_at":null,"body":"I've tracked down the issue to this line in the WebDriver module:\r\n\r\n```\r\n$el->setFileDetector(new \\LocalFileDetector);\r\n```\r\n\r\nIf I remove this line, attachFile works in PhantomJS. Is this something that only works in Selenium?"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/177302703","html_url":"https://github.com/Codeception/Codeception/issues/1823#issuecomment-177302703","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/1823","id":177302703,"user":{"login":"Naktibalda","id":395992,"avatar_url":"https://avatars.githubusercontent.com/u/395992?v=3","gravatar_id":"","url":"https://api.github.com/users/Naktibalda","html_url":"https://github.com/Naktibalda","followers_url":"https://api.github.com/users/Naktibalda/followers","following_url":"https://api.github.com/users/Naktibalda/following{/other_user}","gists_url":"https://api.github.com/users/Naktibalda/gists{/gist_id}","starred_url":"https://api.github.com/users/Naktibalda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Naktibalda/subscriptions","organizations_url":"https://api.github.com/users/Naktibalda/orgs","repos_url":"https://api.github.com/users/Naktibalda/repos","events_url":"https://api.github.com/users/Naktibalda/events{/privacy}","received_events_url":"https://api.github.com/users/Naktibalda/received_events","type":"User","site_admin":false},"created_at":"2016-01-30T21:08:39Z","updated_at":"2016-01-30T21:08:39Z","body":"https://github.com/ariya/phantomjs/issues/13302#issuecomment-158628631\r\nThere is another suggestion to use `UselessFileDetector` instead of `LocalFileDetector`.\r\n\r\nCould you modify [attachFile method](https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Module/WebDriver.php#L1121) and see if it solves the issue?"}}