
Explore selenium with c sharp .net for web automation across Windows, macOS, and Linux using dotnet eight and C# 12.
install visual studio 2022 community edition with dotnet eight, create a new C# NUnit project, and add Selenium WebDriver via NuGet to start cross-platform selenium testing.
Write your first Selenium C# test with NUnit, using ChromeDriver to navigate Google, maximize the window, type into the search box and press return.
Explore selenium code in depth by creating a chrome driver, navigating to urls, locating elements with by name or id, sending keys, and consulting the selenium c sharp api docs.
Identify UI elements with Selenium locator types (ID, name, tag name, class name, CSS selector, link text, partial link text, XPath) and perform actions such as click and send keys.
Learn to identify and interact with UI elements in Selenium using find element with id, name, link text, and other locators, then perform send keys and click actions in C#.
Learn to locate elements in selenium using class name and css selectors, then enter username and password and submit the login form.
Learn how to interact with dropdown and multi-select controls in Selenium using a select element, including selecting by value or text and retrieving all selected options.
Learn to create public static selenium custom methods in C# .NET for UI elements, abstracting click, send keys, clear, and select operations using IWebDriver and By locators.
Develop and refactor Selenium custom methods in C# to handle multi-select, get all selected options, and reusable code, with var typing and for-each, paving the way to page object model.
Master the page object model in selenium with C# .NET to boost test maintenance and reduce code duplication by encapsulating locators and actions in page classes.
Explore the page object model in Selenium with C#.NET by initializing the login page, performing login, and separating locators from test logic for readable, maintainable tests.
Extend Selenium custom methods in C# .NET by using IWebElement instead of driver and locator, simplifying code and improving readability with the page object model and reusable actions.
Discover how extension methods in C# extend IWebElement to create readable login actions, enabling enter text and click operations as seamless drop-in methods.
Record and playback with selenium ide and generate page object model code via chatgpt in selenium csharp net. Learn automated test creation and exporting code for create employee flows.
Explore how NUnit powers C# test automation in Visual Studio 2022 with unit test templates and automatic test discovery. Use setup and teardown to manage web driver resources.
Explore advanced NUnit attributes like test fixture and test case, and run data-driven tests with parameterized constructors; learn to filter by category and execute tests from the command line.
Learn data driven testing in NUnit by using test case source to feed login data models into Selenium tests, replacing test fixtures with data sources and multiple credentials.
Learn data driven testing in selenium with c sharp net by reading login data from json file, deserializing to a login model, and feeding data via NUnit test case source.
Explore arrange/act/assert in selenium with c# and data driven testing using test case source from Json data, verifying login and post-login elements via the page object model and assert.
Learn to return and assert multiple elements from a single is logged in method using C# tuples, including named properties for employee details and manage user, improving data-driven tests.
Explore fluent assertions to write readable tests in .NET, install the fluent assertions package via NuGet, and use should to verify booleans, collections, and dictionaries.
Learn practical refactoring techniques in C sharp 12 and dotnet eight, including folder structures, global usings, and file scoped namespaces to create a readable, framework-like project.
Learn how C# 12 primary constructors simplify selenium test code by replacing default constructors with parameterized class declarations, reducing lines and enabling data driven testing with extensions.
Explore implicit waiting in Selenium and how to set a global wait with TimeSpan.FromSeconds. See how explicit wait differs, to be covered in the next lecture.
Discover the explicit wait mechanism in Selenium with WebDriverWait and the until method to wait for the username control to appear within a timeout.
Discover an elegant explicit wait strategy in Selenium with WebDriverWait and lambda expressions in C#, using polling intervals and custom timeout messages to wait for the username field.
Master cross-browser testing with Selenium by switching from Chrome to Edge and Firefox drivers, launching tests from Visual Studio 2022 preview, and ensuring browsers install before execution.
Learn to invoke browsers in Selenium with C# .NET by passing a driver type as a parameter, dynamically selecting Chrome, Firefox, or Edge drivers instead of hardcoding.
Learn to invoke browsers in C# .NET using a strongly typed driver type enum, replacing strings, and apply switch and switch expressions for cleaner code.
Explore how Selenium grid coordinates multiple browsers across different machines to enable distributed cross-browser testing, using a hub and nodes, with Java jar setup and grid UI.
Connect to a selenium grid using the remote web driver, hub at localhost:4444, and run tests across Chrome, Edge, and Firefox with driver options.
Set up a selenium grid with a hub on Windows 11 and a macOS node, then connect the node using the jar and hub IP to run tests remotely.
Welcome to the course "Selenium with C# .NET for Beginners". This course is built with C# 12 and .NET 8 using Visual Studio 2022 in Windows 11 Operation System. This course is created and updated in 2024, hence all the latest and greatest features of Selenium, C# syntax and features will be covered as part of the course.
Following topics are covered in this course
Selenium Basics and Architecture: Get to know the fundamentals and how Selenium is put together.
Working with Locators: Learn how to interact with different parts of a webpage using various locator tools.
Page Object Model: Understand a smart way to organize your Selenium code for easy maintenance.
Assertions in Selenium: Find out how to check if your web application is doing what it's supposed to with assertion libraries like NUnit Assert and FluentAssertions
Creating Custom Controls: Explore creating custom controls to better handle tricky web elements. Using C# Extension methods will improve the way we write custom methods in more powerful fashion.
Data-Driven Testing: Use data-driven testing to cover a bunch of different scenarios.
Wait Mechanism: Understand Implicit wait and Explicit waiting in Selenium
Cross-Browser: Understand Cross browser testing to work with different browsers
Selenium grid: Working with distributed test with Selenium
Reporting: Generate Test report for the complete test execution
CI/CD: Understand the way to Continuously Integration and Deploy the Test code
Moreover, this course ensures adaptability across operating systems. While the code is written in a Windows environment, it seamlessly executes on Linux and Mac systems, thanks to the cross-platform capabilities of the latest .NET 8.
Join me this course and hope at the end of this course, you will have a solid understanding of the basics of Selenium from the ground up with all details required for you to embark for advanced testing of application with Selenium.