TargetQA
Python
Lesson 1 of 1 · 6 min

1.1 First Selenium Script with Pytest

AI

Lesson Audio Narration

### Python Selenium Minimal Example ```python from selenium import webdriver from selenium.webdriver.common.by import By def test_homepage(): driver = webdriver.Chrome() driver.get("https://targetqa.com") assert "TargetQA" in driver.title driver.quit() ```
Your Task

Complete the script to navigate to `'https://targetqa.com'` and assert that `'TargetQA'` is in `driver.title`.

Common doubts
Did you find this lesson helpful?
solution.py
Loading code editor…
Execution Console

Click "Run Code" to test your implementation.