万本电子书0元读

万本电子书0元读

顶部广告

Selenium Essentials电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Prashanth Sams

出  版  社:Packt Publishing

出版时间:2015-03-27

字       数:72.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
If you are a developer who wants to migrate from Selenium RC or any other automation tool to Selenium WebDriver, then this book is for you. Knowledge of automation tools is necessary to follow the examples in this book.
目录展开

Selenium Essentials

Table of Contents

Selenium Essentials

Credits

About the Author

About the Reviewer

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. The Selenium IDE

WebDriver playback

Prerequisites for the WebDriver playback feature

Locator prioritization

Avoiding Selenium export

The Selenium IDE clipboard

Data Driven tests

User-defined JavaScript methods

Selenium IDE JavaScript functions

Simple JavaScript execution

Mouse scroll

Parameterization using arrays

Selenium Builder

Recording and playback

Data Driven tests

Testing using a JSON file

Testing using an XML file

Selenium Builder on the cloud

Summary

2. Selenium WebDriver Cross-browser Tests

Selenium WebDriver compatibility tests

TestNG

Selenium cross-browser tests on the cloud

SauceLabs

BrowserStack

TestingBot

Selenium headless browser testing

PhantomJS

HTMLUnitDriver

Switching user agents

Firefox user agent

Chrome user agent

Tests on specific Firefox versions

Tests from the custom Firefox profile

Tests from the custom Chrome profile

Summary

3. Selenium WebDriver Functions

Basic WebDriver functions

Locating WebElements

WebElement functions

Navigation

Cookies

Window functions

Select functions

Handling alerts and pop-ups

Mouse and keyboard actions

Summary

4. Selenium WebDriver Best Practices

Handling Ajax websites

The isElementPresent method

Waits

Explicit wait

The FluentWait method

Sleeper

Timeouts

The PageObject pattern

The PageFactory class

The @FindBy annotation

The @FindBys annotation

The EventFiringWebDriver class

Event-firing WebDriver example

Handling iframes

Handling native OS and browser pop-ups using Java Robot

Downloading browser pop-ups

Screen capture

Firefox profile to download files

The JavascriptExecutor class

Page scroll

Highlighting elements

Opening a new browser window

JavaScript error collector

Summary

5. Selenium WebDriver Frameworks

Behaviour-Driven Development

Cucumber BDD framework

Cucumber JVM

JBehave BDD framework

JXL API Data-Driven framework

Reading and writing in an Excel sheet

Simple Data-Driven approach

Data-Driven testing using reusable library

Data-Driven testing using TestNG with the @dataProvider annotation

Apache POI Data-Driven framework

HSSF usermodel – Binary workbook

XSSF usermodel – SpreadsheetML workbook (.xlsx)

SS usermodel – Binary and SpreadsheetML workbooks

Text file Data-Driven framework

Data-Driven testing using TestNG with the @dataProvider annotation – text file

Properties file Data-Driven framework

Data-Driven testing using TestNG with @dataProvider annotation – properties file

CSV file Data-Driven framework

Keyword-Driven framework

Hybrid-Driven framework

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部