Learning Selenium Testing Tools - Third Edition
eBook - ePub

Learning Selenium Testing Tools - Third Edition

Raghavendra Prasad MG

Buch teilen
  1. 318 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Learning Selenium Testing Tools - Third Edition

Raghavendra Prasad MG

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Learning Selenium Testing Tools - Third Edition als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Learning Selenium Testing Tools - Third Edition von Raghavendra Prasad MG im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatique & Développement Web. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

Jahr
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...

Inhaltsverzeichnis