{"action":"created","issue":{"url":"https://api.github.com/repos/springernature/pa11y/issues/98","repository_url":"https://api.github.com/repos/springernature/pa11y","labels_url":"https://api.github.com/repos/springernature/pa11y/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/springernature/pa11y/issues/98/comments","events_url":"https://api.github.com/repos/springernature/pa11y/issues/98/events","html_url":"https://github.com/springernature/pa11y/issues/98","id":110415107,"number":98,"title":"Allow running of additional PhantomJS code before pa11y runs","user":{"login":"rowanmanning","id":138944,"avatar_url":"https://avatars.githubusercontent.com/u/138944?v=3","gravatar_id":"","url":"https://api.github.com/users/rowanmanning","html_url":"https://github.com/rowanmanning","followers_url":"https://api.github.com/users/rowanmanning/followers","following_url":"https://api.github.com/users/rowanmanning/following{/other_user}","gists_url":"https://api.github.com/users/rowanmanning/gists{/gist_id}","starred_url":"https://api.github.com/users/rowanmanning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowanmanning/subscriptions","organizations_url":"https://api.github.com/users/rowanmanning/orgs","repos_url":"https://api.github.com/users/rowanmanning/repos","events_url":"https://api.github.com/users/rowanmanning/events{/privacy}","received_events_url":"https://api.github.com/users/rowanmanning/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/springernature/pa11y/labels/type:%20enhancement","name":"type: enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-10-08T10:10:28Z","updated_at":"2016-03-16T16:30:54Z","closed_at":"2016-02-09T11:52:50Z","body":"Currently there are some issues around login forms and pages that rely on a lot of JavaScript to render. We have the `wait` option for the latter, but it's not ideal.\r\n\r\nProposing adding the ability to run additional custom PhantomJS code before pa11y to prepare the page for testing. Not sure how this would look yet, but I'll throw together some ideas when I have time."},"comment":{"url":"https://api.github.com/repos/springernature/pa11y/issues/comments/197411630","html_url":"https://github.com/springernature/pa11y/issues/98#issuecomment-197411630","issue_url":"https://api.github.com/repos/springernature/pa11y/issues/98","id":197411630,"user":{"login":"GlynnPhillips","id":524573,"avatar_url":"https://avatars.githubusercontent.com/u/524573?v=3","gravatar_id":"","url":"https://api.github.com/users/GlynnPhillips","html_url":"https://github.com/GlynnPhillips","followers_url":"https://api.github.com/users/GlynnPhillips/followers","following_url":"https://api.github.com/users/GlynnPhillips/following{/other_user}","gists_url":"https://api.github.com/users/GlynnPhillips/gists{/gist_id}","starred_url":"https://api.github.com/users/GlynnPhillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GlynnPhillips/subscriptions","organizations_url":"https://api.github.com/users/GlynnPhillips/orgs","repos_url":"https://api.github.com/users/GlynnPhillips/repos","events_url":"https://api.github.com/users/GlynnPhillips/events{/privacy}","received_events_url":"https://api.github.com/users/GlynnPhillips/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T16:30:54Z","updated_at":"2016-03-16T16:30:54Z","body":"Sorry @qaDream77 maybe it would be clearer is my example referenced `example.com` all the time instead of `nature.com`. I will change the above now to make that clearer\r\n\r\nYour example is still trying to do everything with `phantomjs` when there is no need. `pa11y` spins up an instance of `phantomjs` for you so there is no need for some of the above.\r\n\r\nAlso from your example I guess you are trying to use `pa11y` from within a node/JavaScript project and not from the command line. Can you confirm for me if this is correct or if you just want to run a command on the command line?\r\n\r\nThen I can provide an example with comments on how to do this."}}