Recall & Review
beginner
What is Selenium Grid used for?
Selenium Grid allows running tests on multiple machines and browsers at the same time, making testing faster and more efficient.
Click to reveal answer
beginner
What are the two main components of Selenium Grid?
The two main components are the Hub and the Nodes. The Hub controls the test execution, and Nodes run the tests on different browsers and machines.
Click to reveal answer
intermediate
How do you start a Selenium Grid Hub using Python?
You start the Hub by running the command:
java -jar selenium-server.jar hub in the terminal.Click to reveal answer
beginner
What is the purpose of registering a Node to the Hub?
Registering a Node connects it to the Hub so the Hub can send tests to that Node to run on its browser and machine.
Click to reveal answer
intermediate
How can you specify browser and platform capabilities when configuring a Node?
You specify capabilities using JSON or command-line options when starting the Node, telling it which browsers and platforms it supports.
Click to reveal answer
What component of Selenium Grid manages test distribution?
✗ Incorrect
The Hub manages and distributes tests to connected Nodes.
Which command starts a Selenium Grid Node?
✗ Incorrect
The Node is started with the command: java -jar selenium-server.jar node
Why use Selenium Grid in testing?
✗ Incorrect
Selenium Grid allows running tests in parallel on different machines and browsers, speeding up testing.
What must a Node do before it can run tests?
✗ Incorrect
A Node must register with the Hub to receive and run tests.
Which file is commonly used to configure Selenium Grid settings?
✗ Incorrect
JSON files are often used to configure Grid settings like browser capabilities and node details.
Explain the roles of Hub and Node in Selenium Grid and how they work together.
Think of Hub as a manager and Nodes as workers.
You got /4 concepts.
Describe the steps to set up Selenium Grid for parallel testing.
Focus on starting components and connecting them.
You got /4 concepts.