Bird
0
0

Why is it important to use options.add_argument('--disable-gpu') when running Edge in headless mode on some systems?

hard📝 Conceptual Q10 of 15
Selenium Python - Cross-Browser Testing
Why is it important to use options.add_argument('--disable-gpu') when running Edge in headless mode on some systems?
ABecause it disables all graphics making tests faster
BBecause it enables GPU acceleration for faster rendering
CBecause it is required to enable headless mode
DBecause some systems have GPU issues causing crashes in headless mode without this flag
Step-by-Step Solution
Solution:
  1. Step 1: Understand GPU flag purpose

    The '--disable-gpu' flag disables GPU hardware acceleration to avoid crashes on some systems in headless mode.
  2. Step 2: Differentiate from other options

    It does not enable GPU acceleration, nor disable all graphics, nor is it required to enable headless mode itself.
  3. Final Answer:

    Because some systems have GPU issues causing crashes in headless mode without this flag -> Option D
  4. Quick Check:

    Disable GPU to prevent headless crashes on some systems [OK]
Quick Trick: Disable GPU to avoid headless crashes on certain systems [OK]
Common Mistakes:
  • Thinking it enables GPU acceleration
  • Assuming it disables all graphics
  • Believing it's mandatory for headless mode

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes