https://github.com/stefruseva88/selenium-web-driver
Setup Selenium + NUnit. Writing Selenium Tests. Interaction with Page Elements
https://github.com/stefruseva88/selenium-web-driver
nunit-tests selenium-csharp selenium-webdriver
Last synced: 3 months ago
JSON representation
Setup Selenium + NUnit. Writing Selenium Tests. Interaction with Page Elements
- Host: GitHub
- URL: https://github.com/stefruseva88/selenium-web-driver
- Owner: StefRuseva88
- License: mit
- Created: 2024-08-30T13:01:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-28T17:19:37.000Z (about 1 year ago)
- Last Synced: 2024-11-28T18:28:02.107Z (about 1 year ago)
- Topics: nunit-tests, selenium-csharp, selenium-webdriver
- Language: C#
- Homepage:
- Size: 70.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Selenium Web Driver with C#
[](https://learn.microsoft.com/en-us/dotnet/csharp/)
[](https://dotnet.microsoft.com/)
[](https://www.google.com/chrome/)
[](https://nunit.org/)
[](https://www.selenium.dev/)
### This is a test project for Front-End Test Automation July 2024 Course @ SoftUni
## About
Setup Selenium + NUnit. Writing Selenium Tests. Interaction with Page Elements.
## Table of Contents
1. [Interacting with HTML Elements](#interacting-with-html-elements)
- [Form Input Automation](#form-input-automation)
- [Working with Web Tables](#working-with-web-tables)
- [Drop-down Automation](#drop-down-automation)
2. [Data-Driven Testing](#data-driven-testing)
## Interacting with HTML Elements
### 1.1 Form Input Automation
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.
### 1.2 Working with Web Tables
Web tables are represented by the `` 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.
### 1.3 Drop-down Automation
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.
## Data-Driven Testing
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.
## License
This project is licensed under the MIT License.
## Contact
For questions and feedback, you can reach out to the project maintainers.
---
Happy Testing! 🚀