Learning Selenium Testing Tools - Third Edition
eBook - ePub

Learning Selenium Testing Tools - Third Edition

Raghavendra Prasad MG

Compartir libro
  1. 318 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Learning Selenium Testing Tools - Third Edition

Raghavendra Prasad MG

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Learning Selenium Testing Tools - Third Edition un PDF/ePUB en línea?
Sí, puedes acceder a Learning Selenium Testing Tools - Third Edition de Raghavendra Prasad MG en formato PDF o ePUB, así como a otros libros populares de Informatique y Développement Web. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781784396497
Categoría
Informatique

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

Índice