
Discover how Selenium locates elements with selectors in C#, practice on a dedicated site with inputs, checkboxes, radios, dropdowns, and alerts, and learn why automation frameworks simplify testing.
Install Visual Studio Community 2017 and enable Universal Windows Platform development and dotnet desktop development, then create your first project.
Set up a C# console project, install Selenium packages, initialize a ChromeDriver, navigate to the testing site, pause for three seconds, then quit.
Initialize an IWebDriver as a ChromeDriver, navigate to a url, locate an element by its name selector with By.Name, and check element.Displayed to report visibility.
Explore locating elements by id with selenium webdriver in C#. Initialize the chrome driver, extract the URL and id to strings, then verify the element's visibility and quit.
Explore using the class name selector in Selenium WebDriver with C# to locate a paragraph, retrieve its inner text, and print it to the console for verification.
Explore CSS path and XPath selectors in Selenium, including how to copy them and when to use each. CSS selectors are faster and better supported by browsers.
Learn to handle the no such element exception in selenium web driver with C# by using a try-catch block and locating the element inside the block with a CSS path.
Prioritize id or name, then class name, and use css or xpath only if necessary; collaborate with the frontend team to keep element names stable for maintainable tests.
Explore how to interact with text input fields using Selenium WebDriver in C#: locate by name, type text, clear, print the value with get attribute, and check the max length.
Learn to work with check boxes in Selenium WebDriver using C#, selecting elements by CSS selector or XPath, retrieving values with getAttribute, and clicking to verify the checked state.
Explore testing radio buttons with css selectors in selenium using c#. Validate which option is checked and iterate options with a for loop and a strings array holding option numbers.
Explore how to work with drop-down menus in Selenium using C#, retrieving the current value with get attribute, enumerating options via CSS selectors, and selecting values to validate test cases.
Handle alert boxes in Selenium with C# by switching to the alert, reading text, and accepting it; verify post-alert results with a CSS selector and try-catch.
Learn how to design test cases and test scenarios for web forms, using login and register forms to explore invalid usernames, password rules, and how test scenarios group multiple cases.
Learn how assertion verifies test outcomes by comparing the alert box text after login to the expected text, using valid and invalid credentials to validate success or error indicators.
Use mind maps to map website elements and sketch test scenarios and cases, then build a page object model; organize home page and common elements with sheets for login tests.
Build a high-quality automation framework with Selenium WebDriver and C# that lets beginners write tests in plain English for login and registration.
Learn to implement a page object model in selenium with c#, creating home page, menu, and rightsidebar classes. Use PageFactory to initialize elements and a static Driver for shared access.
Create a public static class config to store all test data, including the base url, and define valid and invalid credentials accessible via Config for login tests.
Learn to navigate to the login form in selenium with C# using two paths: via the test scenarios page and via the test cases page, using page object models.
Create and use an actions class in selenium with c# to automate filling a login form using page object model, send keys, and click login with config-driven credentials.
Install and configure the NUnit3 test adapter, set up SetUp and TearDown hooks, and write a valid login test that asserts the alert text.
Structure selenium tests in dedicated test cases and scenarios, set up once, navigate to login, validate username and password lengths, and clear inputs to fix flakiness.
Fix error by moving driver initialization from the driver class to the actions class in Selenium WebDriver with C#, enabling each test to initialize its driver for parallel runs.
Learn to take and save screenshots with Selenium WebDriver in C#, capturing the visible browser window and saving it as a PNG or JPEG file in your project directory.
Install the NUnit console runner from NuGet, run tests with the NUnit console, and view the generated test result XML file, with a plan to produce a pretty HTML report.
Convert your xml test report into a beautiful html file using report unit, installed via nuget and run with the console runner to generate shareable test results.
Enable test parallelization by updating the assembly info and applying the parallelizable attribute with parallel scope fixtures, then set level of parallelism to match CPU cores.
Refactor the Selenium WebDriver framework to run parallel tests by replacing the static driver with a per-test driver created in actions and passed to page object models.
Get the location and size of an element with Selenium WebDriver in C#, retrieving x and y coordinates and width and height to verify pixel-perfect placement.
Learn to execute JavaScript with a JavaScript executor in Selenium WebDriver using C#, hide elements, and apply dynamic styles with a reusable set style method that changes color and borders.
Explore performing user-like actions in selenium with C# using the actions class to hover, drag and drop, and verify hover color via background rgb values.
Master dragging with Selenium by using actions: click and hold, move to element, release, and build and perform; create a reusable moveElement method for easier reuse.
Learn to run Selenium WebDriver tests across Chrome, Firefox, Internet Explorer, and Opera by installing browsers and drivers, then implement browser-specific actions with conditional logic.
Control the browser size and position to test responsive designs, using size and point settings with driver.manage.window to set width, height, and top-left coordinates.
Master switching between multiple tabs and windows in Selenium WebDriver with C#. Use window handles and switch to window to focus on the correct tab and interact with elements.
Open and close tabs in selenium webdriver using c#: use the actions class with ctrl+t, plus javascript window.open, then switch windows, navigate to Gmail, and close all but Gmail tab.
Explore using a headless browser to open a sitemap, extract links, visit posts, and save titles and content to a text file; adapt from phantomjs to chrome headless.
Learn to extract clean links from a sitemap using substring and index calculations with Selenium WebDriver, then automate opening each link for further data extraction.
Use Selenium WebDriver with C# to open each extracted link, extract post title and content with CSS selectors, and save all results in lists for 17 posts.
Save extracted content to text files by creating a directory, building file paths, and writing titles and contents with a stream writer in a for loop.
Selenium Webdriver is a free automation testing tool for web applications. It is able to work with different browsers like Chrome, Firefox, IE, Opera and simulate human like behavior. Selenium is able to interact with all the different elements in a webpage. It can click on them, input text, extract text and much more. By covering all the different functionalities on your website with Selenium tests, you will be able to quickly catch new and reappearing old bugs. This will save your team time and money.
In this Selenium course you will also find a 24/7 LIVE Website which you can use to test everything that you are learning in the course!
This course is perfect for people who are beginners in the subject or manual testers that want to move on to automated testing.
The Selenium Webdriver with C# course is available to you at any time and you have 30-Day MoneyBack Guarantee by Udemy! No questions asked!
In this course we will focus on Graphic User Interface and Functionality Testing and we will learn how to work with the various element selectors and special elements like:
ID, Name, CSS, Xpath and Class Selectors
Textbox, Check box, Radio buttons, Drop down Menus
JavaScript Alert Boxes
We will also have a few theory lectures about Selenium and testing in general in which I will explain:
When you should use either of these selectors;
What is a Test Case/Scenario
How you can use Mindmaps in testing
Then we will start creating our Automation Framework with Selenium! When you learn how to create a Framework by the end of the course, you will be able to write your Selenium WebDriver tests in Plain English!
This course also includes lectures on:
Running Tests on Mobile Devices with Selenium and Appium
Parallel Testing with Selenium and NUnit3 (running multiple tests at the same time)
Generating beautiful HTML Reports for our Test Results with Selenium and NUnit3
Using Different Browsers - Chrome, Opera, Internet Explorer, Firefox
Taking Screenshots with Selenium
Using PhantomJS Driver and Selenium (we have a project here to download all posts from a website!)
Working with Element Properties (Size, Location, Stylings, e.g. change colors or make elements disappear)
Executing Javascript through C# with Selenium
Working with Browser Properties (Size, Location, New Tabs/Windows, Tabs/Windows Handles)
Take this course and join hundreds of satisfied students!
What are they saying about the course:
Joanna Badiola (5 Stars):
"The course is very clear and can be easily understood even with minor knowledge in programming."
Jose Ignacio Calvo Torel (5 Stars):
"Short but great and detailed course!"
Cassessa (5 Stars):
"Normally I am not so easily impressed. But this I give it a 5! Really Great!"
Alexander Mosenko (5 Stars):
"This training course gives a solid foundation needed to start learning Selenium Webdriver with C#. Also, the instructor provides a good support on students' questions."
Mr. Javier Acha (5 Stars):
"This training course gives a solid foundation needed to start learning Selenium Webdriver with C#. Also, the instructor provides a good support on students' questions."
Ed (5 Stars):
"This course is plain, easy to understand. You will not waste your time learning any useless lectures."
Join us!