{"action":"closed","issue":{"url":"https://api.github.com/repos/segmentio/nightmare/issues/1253","repository_url":"https://api.github.com/repos/segmentio/nightmare","labels_url":"https://api.github.com/repos/segmentio/nightmare/issues/1253/labels{/name}","comments_url":"https://api.github.com/repos/segmentio/nightmare/issues/1253/comments","events_url":"https://api.github.com/repos/segmentio/nightmare/issues/1253/events","html_url":"https://github.com/segmentio/nightmare/issues/1253","id":255620622,"number":1253,"title":"Clear Nightmare queue without ending the instance","user":{"login":"DruMasterMunch","id":2733955,"avatar_url":"https://avatars1.githubusercontent.com/u/2733955?v=4","gravatar_id":"","url":"https://api.github.com/users/DruMasterMunch","html_url":"https://github.com/DruMasterMunch","followers_url":"https://api.github.com/users/DruMasterMunch/followers","following_url":"https://api.github.com/users/DruMasterMunch/following{/other_user}","gists_url":"https://api.github.com/users/DruMasterMunch/gists{/gist_id}","starred_url":"https://api.github.com/users/DruMasterMunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DruMasterMunch/subscriptions","organizations_url":"https://api.github.com/users/DruMasterMunch/orgs","repos_url":"https://api.github.com/users/DruMasterMunch/repos","events_url":"https://api.github.com/users/DruMasterMunch/events{/privacy}","received_events_url":"https://api.github.com/users/DruMasterMunch/received_events","type":"User","site_admin":false},"labels":[{"id":675022877,"url":"https://api.github.com/repos/segmentio/nightmare/labels/Needs%20Author%20Update","name":"Needs Author Update","color":"f9d0c4","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-09-06T14:18:26Z","updated_at":"2018-02-28T12:27:40Z","closed_at":"2018-02-28T12:27:40Z","author_association":"NONE","body":"Hi,\r\n\r\nI use nightmare inside a process to generate screenshot, and process diff regression test.\r\n\r\nAt some point, to handle errors than can occure in my diff treatment (process like file writing with node etc ...), i'd like to tell nightmare: \"Ok, stop what you planned to do, but stay open i will send you a new queue of instructions\"\r\n(To be specific, if the diff testing of the screenshot of one css selector fail, I skip this selector and try the next one, and for that, i don't have to reload a whole new nightmare instance)\r\n\r\nunfortunately, nightmare.end close the instance, and i can't find a way to do that \r\nA nightmare.clearQueue() method could be the perfect answer\r\n\r\nThanks !"}}
{"actor":{"display_login":"matthewmueller"}}