4 ms·
Is there a linux headless mode already? Selenium chrome driver headless is pretty much useless in linux because important methods like `send_keys` need X anyway
by scardine 9y ago
Is there a linux headless mode already? Selenium chrome driver headless is pretty much useless in linux because important methods like `send_keys` need X anyway for keyboard mappings or something like that.
- dao- 9y agohttps://bugzilla.mozilla.org/show_bug.cgi?id=1356681 https://bugzilla.mozilla.org/show_bug.cgi?id=1356681 Support headless flag on Linux, RESOLVED FIXED in Firefox 55
- deleted 9y ago[deleted]
- tyingq 9y agoThere is a bug filed against the chrome driver send_keys issue, and a workaround...one that requires recompiling though. https://bugs.chromium.org/p/chromedriver/issues/detail?id=1772 https://bugs.chromium.org/p/chromedriver/issues/detail?id=17...
- arwineap 9y agorecompiling does solve the issue though If you are blocked it may be worth a look
- RJIb8RBYxzAMX9u 9y agoGenuine noob question: could you not use Xvfb?
- mfontani 9y agoThe whole point of headless, from what I can tell, is that you don't _have_ to!
- jordache 9y agoyou can, and it worked, prior to availability of headless options(Phantom sucks). However xvfb is yet another dependency that could cause breakage.
- seanp2k2 9y agoIt also takes a bit longer to start up IIRC, but xvfb + chrome driver on Jenkins definitely works for running tests.
- davvolun 9y agoYou could also install X server and run tests with an entire graphical stack. But if you don't have to....
- pvorb 9y agoThe ticket is about the Windows version so xvfb is not an option.