Learning Selenium Testing Tools with Python

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有興趣的讀者。Python開發人員在進行Selenium測試時無需學習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和Build工具整合,以在構建應用程式時運行測試。本書將引導您使用Selenium WebDriver Python客戶端庫以及Selenium項目的其他工具。在本書的最後,您將瞭解Selenium Grid,它用於使用節點進行跨瀏覽器測試的並行運行。同時,本書還將為您提供基本概述,幫助您提高使用Python和Selenium的實際測試技能。