Up until now, we have been executing Selenium code on our local machine. But that is not a very good idea. Eventually, we are going to run our framework from Jenkins and moreover, we will be running multiple instances of Chrome, Firefox, and Internet Explorer. Here's where Selenium Grid comes to our rescue.
Selenium Grid can be used to execute code on another machine or a virtual machine. It can also be used to execute code on multiple machines. Code is executed on multiple nodes due to which the total execution time is reduced.
Let's take a look at the Selenium Grid architecture.