Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Run headlessly with webdriver #274

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

BobVul
Copy link
Contributor

@BobVul BobVul commented Mar 3, 2016

Since Nightmare updated to use Electron (Chromium), it is no longer able to run headlessly without Xvfb.

So let's reimlpement this with WebDriver + PhantomJS! (Another option was pure PhantomJS.)

  • Bot login and running works.
  • Bot 'already logged in' check not tested. It currently doesn't work because cookies are broken in PhantomJS 2.x. Probably could test with Firefox...
  • REPL does not provide response correctly. WebDriver does not provide output. PhantomJS does not correctly clear console logs after fetch, so we can't just dump them to the terminal either (it repeats previously dumped logs).
  • Login probably needs to be tweaked to work on SO chat... SE chat login works differently. I'm not sure if we can safely unify them, since SE chat has a different login mechanism from the rest of the network - and the old Nightmare method of logging into SU, etc., doesn't work reliably because there's a variable wait involved for the StackAuth SSO scripts to load.

@Zirak
Copy link
Owner

Zirak commented Mar 3, 2016

Awesome! I'll look into some of the things you've mentioned.

@rlemon Could you test whether this'd work on your server?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants