Learning Selenium Testing Tools with Python
暫譯: 使用 Python 學習 Selenium 測試工具

Unmesh Gundecha

商品描述

A practical guide on automated web testing with Selenium using Python

About This Book

  • Write and automate tests for your applications with Selenium
  • Explore the Selenium WebDriver API for easy implementations of small to complex operations on browsers and web applications
  • Packed with easy and practical examples that get you started with Selenium WebDriver

Who This Book Is For

If you are a quality testing professional, or a software or web application developer looking to create automation test scripts for your web applications, with an interest in Python, then this is the perfect guide for you. Python developers who need to do Selenium testing need not learn Java, as they can directly use Selenium for testing with this book.

What You Will Learn

  • Create Selenium WebDriver tests using the Python unittest module
  • Use Selenium WebDriver for cross-browser testing
  • Build reliable and robust tests using implicit and explicit waits
  • Set up and use Selenium Grid for distributed run
  • Test web applications on mobile platforms such as iOS and Android using Appium
  • Utilize various methods provided by Selenium WebDriver to locate web elements and interact with them
  • Capture screenshots and videos of the test execution

In Detail

Selenium WebDriver is a popular automated testing tool for web applications. Python is one of the top programming languages and when used with Selenium it can automate and test web applications. Using Python's unittest module, you can write test cases in Selenium. Over the years, Selenium has become a very powerful testing platform and many organizations are adopting Selenium WebDriver for creating automated user interface tests.

The book's main aim is to cover the fundamentals related to Python Selenium testing. You will learn how the Selenium WebDriver Python API can be integrated with CI and Build tools to allow tests to be run while building applications. This book will guide you through using the Selenium WebDriver Python client library as well as other tools from the Selenium project. Towards the end of this book, you'll get to grips with Selenium Grid, which is used for running tests in parallel using nodes for cross-browser testing. It will also give you a basic overview of the concepts, while helping you improve your practical testing skills with Python and Selenium.

商品描述(中文翻譯)

使用 Python 進行 Selenium 自動化網頁測試的實用指南

本書介紹


  • 使用 Selenium 為您的應用程式編寫和自動化測試

  • 探索 Selenium WebDriver API,以便輕鬆實現從簡單到複雜的瀏覽器和網頁應用程式操作

  • 提供易於理解和實用的範例,幫助您快速入門 Selenium WebDriver

本書適合誰閱讀

如果您是質量測試專業人員,或是希望為您的網頁應用程式創建自動化測試腳本的軟體或網頁應用程式開發人員,並對 Python 感興趣,那麼這本書就是為您量身打造的指南。需要進行 Selenium 測試的 Python 開發人員無需學習 Java,因為他們可以直接使用本書中的 Selenium 進行測試。

您將學到什麼

  • 使用 Python unittest 模組創建 Selenium WebDriver 測試
  • 使用 Selenium WebDriver 進行跨瀏覽器測試
  • 使用隱式和顯式等待構建可靠且穩健的測試
  • 設置和使用 Selenium Grid 進行分散式運行
  • 使用 Appium 在 iOS 和 Android 等移動平台上測試網頁應用程式
  • 利用 Selenium WebDriver 提供的各種方法定位網頁元素並與之互動
  • 捕捉測試執行的螢幕截圖和影片

詳細內容

Selenium WebDriver 是一個流行的網頁應用程式自動化測試工具。Python 是最受歡迎的程式語言之一,與 Selenium 結合使用時,可以自動化和測試網頁應用程式。使用 Python 的 unittest 模組,您可以在 Selenium 中編寫測試案例。多年來,Selenium 已經成為一個非常強大的測試平台,許多組織正在採用 Selenium WebDriver 來創建自動化的使用者介面測試。

本書的主要目的是涵蓋與 Python Selenium 測試相關的基本知識。您將學習如何將 Selenium WebDriver Python API 與 CI 和建置工具整合,以便在建置應用程式時運行測試。本書將指導您使用 Selenium WebDriver Python 客戶端庫以及 Selenium 專案中的其他工具。在本書的最後,您將了解 Selenium Grid,這是一個用於使用節點進行跨瀏覽器測試的平行運行測試的工具。它還將為您提供基本概念的概述,同時幫助您提高使用 Python 和 Selenium 的實際測試技能。