Bird
0
0

Given a Selenium Grid with one hub and two nodes registered, if a test requests Chrome browser and only one node supports Chrome, what happens when two tests request Chrome simultaneously?

medium📝 Predict Output Q4 of 15
Selenium Python - Selenium Grid
Given a Selenium Grid with one hub and two nodes registered, if a test requests Chrome browser and only one node supports Chrome, what happens when two tests request Chrome simultaneously?
ABoth tests run in parallel on the same node
BOne test runs; the other waits until the node is free
CBoth tests fail because only one node supports Chrome
DTests run on different nodes regardless of browser support
Step-by-Step Solution
Solution:
  1. Step 1: Understand node browser support and test allocation

    Only one node supports Chrome, so it can run one test at a time per browser instance.
  2. Step 2: Analyze simultaneous test requests

    The first test runs immediately; the second waits until the node is free.
  3. Final Answer:

    One test runs; the other waits until the node is free -> Option B
  4. Quick Check:

    Single node, multiple tests = queued execution [OK]
Quick Trick: One node runs one browser test at a time [OK]
Common Mistakes:
  • Assuming parallel runs on single node for same browser
  • Thinking tests fail automatically
  • Ignoring browser support on nodes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Selenium Python Quizzes