When people start learning Selenium, they usually write their first script and see a browser open automatically.

But a common question appears immediately:

“How is my code controlling the browser?”

Understanding this will make Selenium much easier to learn.

So before jumping into automation scripts, let's understand how Selenium works...