Learning Selenium Testing Tools - Third Edition
eBook - ePub

Learning Selenium Testing Tools - Third Edition

Raghavendra Prasad MG

Share book
  1. 318 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Learning Selenium Testing Tools - Third Edition

Raghavendra Prasad MG

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is Learning Selenium Testing Tools - Third Edition an online PDF/ePUB?
Yes, you can access Learning Selenium Testing Tools - Third Edition by Raghavendra Prasad MG in PDF and/or ePUB format, as well as other popular books in Computer Science & Web Development. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781784396497

Learning Selenium Testing Tools Third Edition


Table of Contents

Learning Selenium Testing Tools Third Edition
Credits
About the Author
About the Reviewers
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. Getting Started with Selenium IDE
Understanding Selenium IDE
Installing Selenium IDE
Getting acquainted with the Selenium IDE tool
Rules in creating tests with Selenium IDE
Recording your first test with Selenium IDE
Validating a test with assert and verify
Creating comments in your tests
Adding Selenium IDE comments
Multiplying windows
Working with multiple windows
Complex working with multiple windows
Selenium tests against AJAX applications
Working on pages with AJAX
Working with AJAX applications
Storing information from the page in the test
Debugging tests
Creating test suites
Parameterization
Selenium IDE Configuration
Generating source code from Selenium IDE
Saving tests
What you cannot record
Summary
Self-test questions
2. Locators
Locating elements by ID
Finding IDs of elements on the page with Firebug
Finding elements by ID
Moving elements on the page
Finding elements by name
Adding filters to the name
Finding elements by link text
Finding elements by accessing the DOM via JavaScript
Finding elements by XPath
Using direct XPath in your test
Finding elements by direct XPath
Using XPath to find the nth element of a type
Using element attributes in XPath queries
Performing partial match on attribute content
Finding an element by the text it contains
Leveraging the XPath axis with elements
Using the XPath axis
CSS selectors
Finding elements by CSS
Using child nodes to find the element
Using sibling nodes to find the element
Using CSS class attributes in CSS selectors
Using element IDs in CSS selectors
Working with elements and their attributes
Finding elements by their attributes
Performing partial matches on attributes content
Finding the nth element with CSS
Finding an element by its inner text or partial text
Summary
Self-test questions
3. Overview of the Selenium WebDriver
History of Selenium
Understanding the WebDriver architecture
The WebDriver API
The WebDriver SPI
The JSON Wire Protocol
The Selenium server
Merging of two projects
Setting up the IntelliJ IDEA project
Setting up Eclipse IDE with Java project for Selenium WebDriver and TestNG
Downloading WebDriver JAR files
Downloading and installing Eclipse
Configuring WebDriver with Eclipse
TestNG plug-in installation for Eclipse
Steps for installation
Summary
Self-test questions
4. Finding Elements
Finding elements
Finding an element on the page by its ID
Using findElementById()
Finding elements on the page by their ID
Using findElementsById()
Finding an element on the page by its name
Using findElementByName()
Finding elements on the page by their name
Using findElementsByName()
Finding an element on the page by its ClassName
Using findElementByClassName()
Finding elements on the page by their ClassName
Using findElementsByClassName()
Finding an element on the page by its XPath
Using findElementByXPath()
Finding elements on the page by their XPath
Using findElementsByXpath()
Finding an element on the page by its link text
Using findElementByLinkText()
Finding elements on the page by their link text
Using findElementsByLinkText()
Using findElement Helper methods
Finding elements using a more generic method
Using findElement()
Using findElements()
Tips and tricks
Finding if an element exists without throwing an error
Waiting for elements to appear on the page
Implicit waits
Using implicit waits
Explicit waits
Using explicit waits with Selenium WebDriver
Summary
Self-test questions
5. Design Patterns
Page objects
Setting up the test
Moving Selenium steps into private methods to make tests maintainable
Using the Page Object pattern to design tests
Using Page Factory with Page Object
Using PageFactory
LoadableComponent
Changing our Page Object to use LoadableComponent
Using LoadableComponent
Summary
Self-test questions
6. Working with WebDriver
Working with FirefoxDriver
Firefox profile preferences
Installing a Firefox add-on
Working with ChromeDriver
ChromeOptions
Working with OperaDriver
OperaProfile
Working with InternetExplorerDriver
Other important points
Summary
Self-test questions
7. Automation Framework Development and Building Utilities
Automation without framework
Automation with Framework
Test Automation Frameworks Evolution
Record/Playback
Advantages
Disadvantages
Action driven approach
Advantages
Disa...

Table of contents