Book description
Solve your Selenium WebDriver problems with this quick guide to automated testing of web applications with Selenium WebDriver in C#. Selenium WebDriver Recipes in C#, Second 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.
Table of contents
- Cover
- Title
- Copyright
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Preface
- Chapter 1: Introduction
- Chapter 2: Locating Web Elements
- Chapter 3: Hyperlink
- Chapter 4: Button
- Chapter 5: TextField and TextArea
- Chapter 6: Radio Button
- Chapter 7: Check Box
- Chapter 8: Select List
-
Chapter 9: Navigation and Browser
- Go to a URL
- Visit pages within a site
- Perform actions from the right-click context menu
- Open browser in certain size
- Maximize browser window
- Move browser window
- Minimize browser window
- Scroll focus to control
- Switch between browser windows or tabs
- Remember current web page URL and return to it later
- Chapter 10: Assertion
- Chapter 11: Frames
- Chapter 12: AJAX
- Chapter 13: Pop-up
- Chapter 14: Debugging Test Scripts
- Chapter 15: Test Data
-
Chapter 16: Browser Profile
- Get browser type and version
- Set HTTP proxy for browser
- Verify file download in Chrome
- Verify file download in Firefox
- Bypass basic authentication by embedding username and password in URL
- Bypass basic authentication with Firefox AutoAuth plug-in
- Manage cookies
- Headless browser testing with PhantomJS
- Test responsive web sites
- Chapter 17: Advanced User Interactions
- Chapter 18: HTML5 and JavaScript
- Chapter 19: WYSIWYG Editor
-
Chapter 20: Leverage Programming
- Throw exceptions to fail test
- Ignorable test statement error
- Read external file
- Data-driven tests with Excel
- Data-driven tests with CSV
- Identify element IDs with dynamically generated long prefixes
- Sending special keys such as Enter to an element or browser
- Use of Unicode in test scripts
- Extract a group of dynamic data: Verify search results in order
- Verify uniqueness of a set of data
- Extract dynamic visible data rows from a results table
- Extract dynamic text following a pattern using Regex
-
Chapter 21: Optimization
- Assert string in page_source is faster than the text
- Getting text from more specific elements is faster
- Avoid programming if-else block code if possible
- Use variable to cache unchanged data
- Enter large text into a text box
- Use environment variables to change test behaviors dynamically
- Test a web app in two languages
- Multi-language testing with lookups
- Chapter 22: Gotchas
- Chapter 23: Remote Control Server
- Chapter 24: Afterword
- Chapter 25: Resources
- Index
Product information
- Title: Selenium WebDriver Recipes in C#, Second Edition
- Author(s):
- Release date: December 2015
- Publisher(s): Apress
- ISBN: 9781484217429
You might also like
video
Selenium WebDriver 4 with Java - Zero To Hero
Selenium WebDriver is an open-source automation tool that works easily across multiple OS and browsers and …
book
Selenium WebDriver Quick Start Guide
Get writing tests and learn to design your own testing framework with Selenium WebDriver API Key …
book
Mastering Selenium WebDriver 3.0
Complement Selenium with useful additions that fit seamlessly into the rich and well-crafted API that Selenium …
book
Selenium WebDriver 3 Practical Guide - Second Edition
Real-world examples of cross-browser, mobile, and data-driven testing with all the latest features of Selenium WebDriver …