Selenium Testing Tools Cookbook - Second Edition

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 30. Oktober 2015
  • |
  • 374 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78439-077-8 (ISBN)
Over 90 recipes to help you build and run automated tests for your web applications with Selenium WebDriverAbout This BookLearn to leverage the power of Selenium WebDriver with simple examples that illustrate real-world problems and their workaroundsExplains the testing of mobile applications with Appium for mobile platforms such as iOS and AndroidA pragmatic manual with engaging recipes and attractive screenshots to test your web applications efficientlyWho This Book Is ForThis book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java to test web-based applications. This books also provides examples for C#, Python and Ruby users.What You Will LearnUnderstand how the locators work and use various locator methods to build reliable testsBuild reliable and maintainable tests with the Selenium WebDriver APIUse the PageFactory pattern to build a robust and easy to maintain test frameworkBuild data-driven tests and extend Selenium API to implement custom steps and checksIntegrate and use ATDD/BDD tools such as Cucumber, SpecFlow, Capybara, and Behave with the Selenium WebDriver APISet up iPhone/iPad and Android simulators and devices to test your mobile web application with AppiumSet up Selenium Grid for faster and parallel running of tests, increasing test coverage and reducing test execution time for cross-browser testingBuild extended Selenium WebDriver tests for additional coverageIn DetailThis book is an incremental guide that will help you learn and use the advanced features of the Selenium toolset including the WebDriver API in various situations to build a reliable test automation. You start off by setting up the test development environment and gain tips on the advanced locater strategy and the effective use of the Selenium WebDriver API.After that, the use of design patterns such as data - driven tests and PageFactory are demonstrated. You will then be familiarised with extending Selenium WebDriver API by implementing custom tasks and setting up your own distributed environment to run tests in parallel for cross-browser testing.Finally, we give you some tips on integrating Selenium WebDriver with other popular tools and testing mobile applications. By the end of this book, you will have learned enough to solve complex testing issues on your own.Style and approachThis recipe-based guide covers real-life scenarios of testing your web apps with Selenium. Each recipe begins with a short introduction and key concepts along with illustrated examples of use cases, and ends with detailed but informative descriptions of the inner workings of the example.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
  • Überarbeitete Ausgabe
978-1-78439-077-8 (9781784390778)
1784390771 (1784390771)
weitere Ausgaben werden ermittelt
Unmesh Gundecha has a master's degree in software engineering and over 13 years of experience in software development and testing. He has architected functional test automation projects using industry-standard, in-house, and custom test automation frameworks, along with leading commercial and open source test automation tools. Presently, he is working as a test architect for a multinational company in Pune, India. Unmesh has also authored a book called Learning Selenium Testing Tools with Python, Packt Publishing.
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewers
  • Table of Contents
  • Preface
  • Chapter 1: Getting Started
  • Introduction
  • Configuring the Selenium WebDriver test development environment for Java with Eclipse and Maven
  • Using Ant for Selenium WebDriver test execution
  • Configuring Microsoft Visual Studio for Selenium WebDriver test development
  • Configuring Selenium WebDriver for Python and Ruby
  • Setting up Internet Explorer Driver Server
  • Setting up ChromeDriver for Google Chrome
  • Setting up Microsoft WebDriver for Microsoft Edge
  • Chapter 2: Finding Elements
  • Introduction
  • Using browser tools for inspecting elements and page structure
  • Finding an element using the findElement method
  • Finding elements using the findElements method
  • Finding links
  • Finding elements by tag name
  • Finding elements using XPath
  • Finding elements using CSS selectors
  • Locating elements using text
  • Finding elements using advanced CSS selectors
  • Using jQuery selectors
  • Chapter 3: Working with Elements
  • Introduction
  • Automating textboxes, text areas, and buttons
  • Checking an element's text
  • Checking an element's attribute and CSS values
  • Automating dropdowns and lists
  • Checking options in the Select element
  • Checking selected options in dropdowns and lists
  • Automating radio buttons and radio groups
  • Automating checkboxes
  • Working with WebTables
  • Chapter 4: Working with Selenium API
  • Introduction
  • Checking an element's presence
  • Checking an element's state
  • Using Advanced User Interactions API for mouse and keyboard events
  • Performing double-click on an element
  • Performing drag-and-drop operations
  • Working with context menus
  • Executing JavaScript code
  • Capturing screenshots with Selenium WebDriver
  • Maximizing the browser window
  • Handling session cookies
  • Working with browser navigation
  • Working with WebDriver events
  • Chapter 5: Synchronizing Tests
  • Introduction
  • Synchronizing a test with an implicit wait
  • Synchronizing a test with an explicit wait
  • Synchronizing a test with custom-expected conditions
  • Synchronizing a test with FluentWait
  • Chapter 6: Working with Alerts, Frames, and Windows
  • Introduction
  • Handling a simple JavaScript alert box
  • Handling a confirm and prompt alert box
  • Identifying and handling frames
  • Working with IFRAME
  • Identifying and handling a child window
  • Identifying and handling a window by its title
  • Identifying and handling a pop-up window by its content
  • Chapter 7: Data-driven Testing
  • Introduction
  • Creating a data-driven test using JUnit
  • Creating a data-driven test using TestNG
  • Reading test data from a CSV file using JUnit
  • Reading test data from an Excel file using JUnit and Apache POI
  • Creating a data-driven test in NUnit
  • Creating a data-driven test in MSTEST
  • Creating a data-driven test in Ruby using Roo
  • Creating a data-driven test in Python using DDT
  • Chapter 8: Using the Page Object Model
  • Introduction
  • Using the PageFactory class for exposing the elements on a page
  • Using the PageFactory class for exposing an operation on a page
  • Using the LoadableComponent class
  • Implementing nested Page Object instances
  • Implementing the Page Object model in .NET
  • Implementing the Page Object model in Python
  • Implementing the Page Object model in Ruby using the page-object gem
  • Chapter 9: Extending Selenium
  • Introduction
  • Creating an extension class for web tables
  • Creating an extension for the jQueryUI tab widget
  • Implementing an extension for the WebElement object to set the element attribute values
  • Implementing an extension for the WebElement object to highlight elements
  • Creating an object map for Selenium tests
  • Capturing screenshots of elements in the Selenium WebDriver
  • Comparing images in Selenium
  • Measuring performance with the Navigation Timing API
  • Chapter 10: Testing HTML5 Web Applications
  • Introduction
  • Automating the HTML5 video player
  • Automating interaction on the HTML5 canvas element
  • Web storage - testing local storage
  • Web storage - testing session storage
  • Cleaning local and session storage
  • Chapter 11: Behavior-Driven Development
  • Introduction
  • Using Cucumber-JVM and Selenium WebDriver in Java for BDD
  • Using SpecFlow.NET and Selenium WebDriver in .NET for BDD
  • Using Capybara, Cucumber, and Selenium WebDriver in Ruby
  • Using Behave and Selenium WebDriver in Python
  • Chapter 12: Integration with Other Tools
  • Introduction
  • Configuring Jenkins for continuous integration
  • Using Jenkins and Maven for Selenium WebDriver test execution in continuous integration
  • Using Ant for Selenium WebDriver test execution
  • Using Jenkins and Ant for Selenium WebDriver test execution in continuous integration
  • Automating a non-web UI in Selenium WebDriver with AutoIt
  • Automating a non-web UI in Selenium WebDriver with Sikuli
  • Chapter 13: Cross-Browser Testing
  • Introduction
  • Setting up Selenium Grid Server for parallel execution
  • Adding nodes to Selenium Grid for cross-browser testing
  • Creating and executing Selenium script in parallel with TestNG
  • Creating and executing Selenium script in parallel with Python
  • Using Cloud tools for cross-browser testing running tests in the Cloud
  • Running tests in headless mode with PhantomJS
  • Chapter 14: Testing Applications on Mobile Browsers
  • Introduction
  • Setting up Appium for testing mobile applications
  • Testing mobile web applications on iOS using Appium
  • Testing mobile web applications on Android using Appium
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

35,85 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok