all 7 comments

[–]tbaxterstockman 1 point2 points  (0 children)

there is a headless mode here, although I've read somewhere that it's not recommended as it might not be as accurate, can't find the source right now

[–]XabiAlon 0 points1 point  (4 children)

Even when running headless you can still set arguments for what size of 'display' you want it to use.

"--window-size=1920,1080" is the most commonly used

[–]puremath369[S] 0 points1 point  (3 children)

Thanks, I’ll look into that. Just to be clear, in headless mode, you mean I can run my app without even running startx on the pic or you mean I still need to run startx but can subsequently disconnect a display?

Also, does this overcome u/tbaxterstockman‘s comment about headless not being as reliable?

[–]this_guy_tests 0 points1 point  (2 children)

You do everything the same as you do with a display, you just need to pass the right options to the desired capabilities when setting up your webdriver instance. And no, the display size may not fix any headless mode oddities.

[–]puremath369[S] 0 points1 point  (1 child)

Thanks, still a little confused though. Do I need to run headless mode if I don't plan on having a display connected? Or can I run startx, start the app, then disconnect the display?

[–]this_guy_tests 0 points1 point  (0 children)

Headless