← Selenium Automation Testing learning pathSelenium Automation Testing · Module 2 of 10
Setup and first script
Install Selenium and automate a simple flow.
📖 Key ideas
- Python: pip install selenium; Java: add the Maven dependency.
- Create a driver: driver = webdriver.Chrome().
- Open a page: driver.get("https://example.com").
- Read the title: driver.title.
- 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