Selenium Essentials
eBook - ePub

Selenium Essentials

Prashanth Sams

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

Selenium Essentials

Prashanth Sams

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 Selenium Essentials un PDF/ePUB en línea?
Sí, puedes acceder a Selenium Essentials de Prashanth Sams en formato PDF o ePUB, así como a otros libros populares de Informatica y Programmazione web. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781784394332
Categoría
Informatica

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

Selenium Essentials

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: March 2015
Production reference: 1230315
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-433-2
www.packtpub.com

Credits

Author
Prashanth Sams
Reviewer
Alen Šiljak
Commissioning Editor
Pramila Balan
Acquisition Editor
Llewellyn Rozario
Content Development Editor
Sweny Sukumaran
Technical Editor
Parag Topre
Copy Editor
Sarang Chari
Project Coordinator
Rashi Khivansara
Proofreaders
Safis Editing
Maria Gould
Indexer
Hemangini Bari
Production Coordinator
Melwyn D'sa
Cover Work
Melwyn D'sa

About the Author

Prashanth Sams is a test automation engineer contributing to the IT industry since 2011. He graduated with a bachelor's degree in information technology from Anna University and lives in Chennai, India, with his family. He started his career as a human resource executive. Later, he worked at an HR outsourcing (US recruiting) company that operates in Chennai.
He is very passionate about test automation and has chosen to be a professional software engineer. He is an active blogger and a moderator for http://seleniumworks.blogspot.in/, a blog about Selenium, and is a great supporter of the Selenium Community, responding diligently to questions and answers over professional networks. He loves emerging technologies with soft skills development and spends 14 to 16 hours a day on them. In a short span of time, he has gained rich experience in various projects, handling different automation tools. Prashanth's Twitter handle is @prashanthsams.

About the Reviewer

Alen Šiljak is a solutions architect and software development enthusiast who was lucky enough to live through the times from the 8-bit machines to the 64-bit ones. As a fan of Agile methodologies, he appreciates creativity and enjoys creating order from entropy. Currently, he is happy to see software become mainstream, but he still sighs for the times when technologies were obsolete in a matter of months, if not weeks. Also, he stil...

Índice