Mastering Selenium WebDriver

Mark Collin

  • 出版商: Packt Publishing
  • 出版日期: 2015-08-31
  • 定價: $1,578
  • 售價: 5.0$789
  • 語言: 英文
  • 頁數: 280
  • 裝訂: Paperback
  • ISBN: 1784394351
  • ISBN-13: 9781784394356
  • 相關分類: selenium
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

商品描述

Increase the performance, capability, and reliability of your automated checks by mastering Selenium WebDriver

About This Book

  • Create an extensible test framework in Java supporting parallel execution with TestNG
  • Understand the power, simplicity, and limitations of the core Selenium framework
  • Write clear, simple, readable, and reliable tests that perform complex test automation tasks

Who This Book Is For

If you are a software tester or a developer who has learnt the basics of Selenium using the WebDriver API and is now ready to take the next step, then this is the book for you.

What You Will Learn

  • Provide fast, useful feedback with sensible errors and screenshots
  • Create extensible, well-composed page objects
  • Gain an in-depth understanding of implicit and explicit waits, and how you should use them
  • Leverage the full power of the Actions API
  • Explore the full potential of the JavascriptExecutor
  • Extend Selenium's capabilities by integrating other applications
  • Learn how to plug third-party products into Selenium, and where it is appropriate to do so

In Detail

Selenium WebDriver, also known as Selenium 2, is a UI automation tool used by software developers and QA engineers to test their web applications on different web browsers. The Selenium WebDriver API is fully object oriented compared with the deprecated Selenium RC. The WebDriver API provides multi-language support and run tests on all the most popular browsers.

In this wide and complex World Wide Web era, this book will teach you how to tame it by gaining an in-depth understanding of the Selenium API.

This book starts with how to solve the difficult problems that you will undoubtedly come across as you start using Selenium in an enterprise environment, followed by producing the right feedback when failing, and what the common exceptions are, explain them properly (including the root cause) and tell you how to fix them. You will also see the differences between the three available implicit waits and explicit waits, and learn to working with effective page objects.

Moving on, the book shows you how to utilize the Advanced User Interactions API, how you can run any JavaScript you need through Selenium, and how to quickly spin up a Selenium Grid using Docker containers.

At the end, the book will discuss the upcoming Selenium W3C specification and how it is going to affect the future of Selenium.

Style and approach

This book is a pragmatic guide that takes you through the process of creating a test framework. It then shows you how you can extend this framework to overcome common obstacles that you will come across whilst using Selenium.

商品描述(中文翻譯)

提升自動化測試的效能、能力和可靠性,精通Selenium WebDriver

關於本書

- 使用Java建立可擴展的測試框架,支援TestNG的並行執行
- 瞭解核心Selenium框架的優勢、簡單性和限制
- 撰寫清晰、簡單、易讀且可靠的測試,執行複雜的自動化測試任務

本書適合對Selenium WebDriver API有基礎了解的軟體測試人員或開發人員,準備邁向下一步的讀者。

你將學到什麼

- 提供快速、有用的回饋,包括合理的錯誤和截圖
- 建立可擴展、結構良好的頁面物件
- 深入瞭解隱式等待和顯式等待,以及如何適當使用它們
- 充分利用Actions API的功能
- 探索JavascriptExecutor的全部潛力
- 通過整合其他應用程式擴展Selenium的能力
- 學習如何將第三方產品插入Selenium,以及適合這樣做的情況

詳細內容

Selenium WebDriver,也稱為Selenium 2,是軟體開發人員和QA工程師用於在不同瀏覽器上測試網頁應用程式的UI自動化工具。Selenium WebDriver API完全面向物件,相較於已棄用的Selenium RC。WebDriver API提供多語言支援,並可在所有最流行的瀏覽器上運行測試。

在這個廣泛而複雜的網際網路時代,本書將教你如何通過深入瞭解Selenium API來掌握它。

本書首先解決在企業環境中使用Selenium時不可避免遇到的困難問題,然後介紹在測試失敗時如何提供正確的回饋,以及常見的異常情況,並詳細解釋它們的根本原因和修復方法。你還將看到三種可用的隱式等待和顯式等待之間的差異,並學習如何使用有效的頁面物件。

接下來,本書將向你展示如何利用高級使用者互動API,如何通過Selenium執行所需的任何JavaScript,以及如何使用Docker容器快速建立Selenium Grid。

最後,本書將討論即將到來的Selenium W3C規範,以及它對Selenium未來的影響。

風格和方法

本書是一本實用指南,帶領你進入創建測試框架的過程。然後,它將向你展示如何擴展這個框架,克服在使用Selenium時遇到的常見障礙。