This project uses pytest-bdd
and Selenium WebDriver to test the DuckDuckGo search engine through browser-based behavior-driven development (BDD).
features/
β Gherkin scenarios describing expected web search behaviortests/
β Step definitions that automate browser actions using Selenium
Two scenarios verify that DuckDuckGo's web interface returns relevant results for:
- π
"Koala"
- π A long historical quote from the Declaration of Independence
Each test checks:
- The DuckDuckGo homepage loads successfully
- Search results appear for the entered phrase
- At least one result contains the expected keyword or phrase