Bird
0
0

You need to run Selenium tests headlessly on a Linux CI server without a display. Which additional setup is required to run Chrome headless successfully?

hard📝 Application Q9 of 15
Selenium Python - CI/CD Integration
You need to run Selenium tests headlessly on a Linux CI server without a display. Which additional setup is required to run Chrome headless successfully?
AInstall a virtual display server like Xvfb and run Chrome with --headless
BRun Chrome normally without headless mode
CUse Firefox instead of Chrome to avoid display issues
DNo additional setup is needed; Chrome headless works out of the box
Step-by-Step Solution
Solution:
  1. Step 1: Understand headless Chrome on Linux

    Modern Chrome headless mode is designed to run without a graphical display server.
  2. Step 2: Confirm no additional setup for display

    No Xvfb or virtual display is required; it works out of the box on Linux CI servers.
  3. Final Answer:

    No additional setup is needed; Chrome headless works out of the box -> Option D
  4. Quick Check:

    Chrome headless runs without display or Xvfb [OK]
Quick Trick: Chrome headless works on Linux CI without Xvfb [OK]
Common Mistakes:
  • Thinking Xvfb is required for headless
  • Switching to Firefox unnecessarily
  • Running Chrome without headless on CI

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes