Framework Mode - Radio button interactions
Folder Structure
tests/ ├── test_radio_buttons.py pages/ ├── base_page.py ├── radio_buttons_page.py utils/ ├── selenium_driver.py config/ ├── config.yaml reports/ ├── test_report.html conftest.py
tests/ ├── test_radio_buttons.py pages/ ├── base_page.py ├── radio_buttons_page.py utils/ ├── selenium_driver.py config/ ├── config.yaml reports/ ├── test_report.html conftest.py
Use a YAML file (config/config.yaml) to store environment URLs, browser choice, and credentials.
Example config.yaml:
environment: url: "https://example.com/radio-buttons" browser: "chrome"
Use conftest.py with pytest fixtures to read config and initialize the driver accordingly.
pytest with pytest-html plugin to generate HTML reports in reports/.Where in this folder structure would you add a new page object for a group of radio buttons on a different page?