Book Image

Selenium Testing Tools Cookbook Second Edition

By : UNMESH GUNDECHA
5 (1)
Book Image

Selenium Testing Tools Cookbook Second Edition

5 (1)
By: UNMESH GUNDECHA

Overview of this book

This book is an incremental guide that will help you learn and use the advanced features of the Selenium toolset including the WebDriver API in various situations to build a reliable test automation. You start off by setting up the test development environment and gain tips on the advanced locater strategy and the effective use of the Selenium WebDriver API. After that, the use of design patterns such as data - driven tests and PageFactory are demonstrated. You will then be familiarised with extending Selenium WebDriver API by implementing custom tasks and setting up your own distributed environment to run tests in parallel for cross-browser testing. Finally, we give you some tips on integrating Selenium WebDriver with other popular tools and testing mobile applications. By the end of this book, you will have learned enough to solve complex testing issues on your own.
Table of Contents (16 chapters)
15
Index

Introduction


Web applications, and the web pages within these applications, are commonly written in a mix of Hyper Text Markup Language (HTML), Cascading Style Sheets (CSS), and JavaScript code. Based on user actions like navigating to a website Uniform Resource Locator (URL) or clicking the submit button, a browser sends a request to a web server. Web server processes this request and sends back a response with HTML and related resources, such as JavaScript, CSS, Images, and so on, back to the Browser. The information received from a server is used by the browser to render a web page with various visual elements, such as textboxes, buttons, labels, tables, forms, checkboxes, radio boxes, lists, images, and so on, on the page. While doing so, the browser hides the HTML code and related resources from the user. The user is presented with a graphical user interface in the browser window.

When we want to automate browser interaction using Selenium, we need to tell Selenium how to find a particular...