售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
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
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜