Skip to content

Setup Selenium + NUnit. Writing Selenium Tests. Interaction with Page Elements

License

Notifications You must be signed in to change notification settings

StefRuseva88/selenium-web-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Web Driver with C#

C# .NET Google Chrome NUnit Selenium

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
  2. 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 <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.

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! 🚀

About

Setup Selenium + NUnit. Writing Selenium Tests. Interaction with Page Elements

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages