Limit search to available items
Book Cover
E-book
Author Zhan, Courtney, author

Title Selenium WebDriver recipes in C# : practical testing solutions for Selenium WebDriver / editor, Zhimin Zhan ; author, Courtney Zhan
Edition 3rd ed
Published Berkeley, CA : Apress L. P., 2024

Copies

Description 1 online resource (xxi, 329 pages) : illustrations
Contents Intro -- Table of Contents -- About the Authors -- Preface -- Chapter 1: Introduction -- Selenium WebDriver -- Selenium Language Bindings -- Set Up the Development Environment - Visual Studio Code -- Prerequisites -- Set Up Visual Studio Code -- Cross-Browser Testing -- Chrome -- Firefox -- Safari -- Edge -- Internet Explorer -- Visual Studio Unit Testing Framework -- Visual Studio Unit Testing Framework Fixtures -- Alternative Framework: NUnit -- Run Recipe Scripts -- Run Test(s) in VS Code -- Find the Test Case -- Run an Individual Test Case -- Run All Test Cases in a Test Script File
Run Tests from the Command Line -- Chapter 2: Locating Web Elements -- Start a Browser -- Inspect a Web Element in a Browser -- Find an Element by ID -- Find an Element by Name -- Find an Element by Link Text -- Find an Element by Partial Link Text -- Find an Element by XPath -- Find an Element by a Tag Name -- Find an Element by Class -- Find an Element by CSS Selector -- Find an Element by Relative Locators -- Chain FindElement to Find Child Elements -- Find Multiple Elements -- Locate a Web Element That Disappears After Inspect -- Chapter 3: Hyperlink -- Click a Link by Text
Click a Link by ID -- Click a Link by Partial Text -- Click a Link by XPath -- Click the Nth Link with Exact Same Label -- Click the Nth Link by CSS Selector -- Verify If a Link Is Present or Not -- Get Link Data Attributes -- Test If a Link Opens a New Browser Window -- Chapter 4: Button -- Click a Button by Text -- Click a Form Button by Text -- Submit a Form -- Click a Button by ID -- Click a Button by Name -- Click an Image Button -- Click a Button via JavaScript -- Assert If a Button Is Present -- Assert If a Button Is Enabled or Disabled -- Chapter 5: TextField and TextArea
Enter Text into a Text Field by Name -- Enter Text into a Text Field by ID -- Enter Text into a Password Field -- Clear a Text Field -- Enter Text into a Multiline Text Area -- Assert a Value -- Focus on a Control -- Set a Value to a Read-Only or Disabled Text Field -- Set and Assert the Value of a Hidden Field -- Chapter 6: Radio Button -- Select a Radio Button -- Clear the Radio Option Selection -- Assert a Radio Option Is Selected -- Iterate Radio Buttons in a Radio Group -- Click the Nth Radio Button in a Group -- Click a Radio Button by the Following Label
Customized Radio Buttons with iCheck -- Chapter 7: CheckBox -- Check by Name -- Check by Id -- Uncheck a Checkbox -- Assert a Checkbox Is Checked (or Not) -- Chain FindElement to Find Child Elements -- Customized Checkboxes using iCheck -- Chapter 8: Select List -- Import Selenium.Support -- Select an Option by Text -- Select an Option by a Value -- Select an Option by an Index -- Send Keys to the Select Element -- Select an Option by Iterating All Options -- Select Multiple Options -- Clear One Selection -- Clear All Selections -- Assert a Selected Option
Summary Solve your Selenium WebDriver problems with this quick guide to automated testing of web applications with Selenium WebDriver in C#. This third edition contains hundreds of solutions to real-world problems, with clear explanations and ready-to-run Selenium test scripts that you can use in your own projects. Updated to Selenium version 4, this revision includes Visual Studio Code set up, additional recipes, and new chapters on Selenium DevTools and continuous testing. You'll see how to use Selenium WebDriver for select lists, navigation, assertions, frames, file upload and pop-up dialogs. You'll also learn how to locate web elements and test functions for hyperlinks, buttons, TextFields and TextAreas, radio buttons, CheckBoxes, and more. What You'll Learn Debug test scripts and test data Work with Selenium Remote Control Server Manage and deal with browser profiles and capabilities Monitor tests for advanced user interactions and experiences (UX) Who This Book Is For Experienced .NET and C# Windows application programmers/developers
Notes Description based upon print version of record
Subject Computer software -- Testing -- Automation
C# (Computer program language)
Form Electronic book
Author Zhan, Zhimin, editor.
ISBN 9798868800238