Framework Mode - Element-level screenshot
Folder Structure
selenium-python-project/
├── tests/
│ ├── test_login.py
│ ├── test_dashboard.py
│ └── test_element_screenshot.py <-- Element screenshot tests here
├── pages/
│ ├── base_page.py
│ ├── login_page.py
│ └── dashboard_page.py
├── utils/
│ ├── screenshot_helper.py <-- Helper for element-level screenshots
│ └── driver_factory.py
├── config/
│ ├── config.yaml
│ └── credentials.yaml
├── reports/
│ └── latest_report.html
├── conftest.py
└── requirements.txt