← Selenium Automation Testing learning path
Selenium Automation Testing · Module 2 of 10

Setup and first script

Install Selenium and automate a simple flow.

📖 Key ideas

  1. Python: pip install selenium; Java: add the Maven dependency.
  2. Create a driver: driver = webdriver.Chrome().
  3. Open a page: driver.get("https://example.com").
  4. Read the title: driver.title.
  5. Always close: driver.quit().
💡 Real-life example: Your first script is teaching the robot to open a door, read the nameplate, and close the door.
webdriver.Chrome()Starts a Chrome session
driver.get()Opens a URL
driver.titlePage title
driver.quit()Ends the session