Setup Selenium + NUnit. Writing Selenium Tests. Interaction with Page Elements.
Automate form filling using Selenium by locating and interacting with various HTML elements. The process includes:
- Populating input fields such as text boxes, radio buttons, and date pickers.
- Submitting the form.
Web tables are represented by the <table>
tag and are used to display data in a structured way.
Objective:
- Locating the web table on the home page using XPath.
- Tracking the table to extract product data.
- Saving the extracted information to a CSV file.
- Confirming that the CSV file is created and is not empty by using assertions.
Automate the interaction with dropdown menus using Selenium.
Objective:
- Identifying the dropdown element by its
name
attribute. - Utilizing the
SelectElement
class to access and interact with dropdown options. - Saving the dropdown information to a text file.
- Locating the file in the
bin -> Debug -> net{version}
folder.
Implement data-driven testing to reuse the same test logic across different data inputs, thereby increasing test efficiency.
Essential Concepts:
- Data-driven testing decouples test data from the test logic, allowing the same logic to be applied consistently across various scenarios.
- Each test executes independently with its unique data set, which boosts the reliability of the tests.
This project is licensed under the MIT License.
For questions and feedback, you can reach out to the project maintainers.
Happy Testing! 🚀