Skip to Main Content
Selenium WebDriver 3 Practical Guide - Second Edition
book

Selenium WebDriver 3 Practical Guide - Second Edition

by Pallavi Sharma, UNMESH GUNDECHA, Satya Avasarala
July 2018
Intermediate to advanced content levelIntermediate to advanced
280 pages
7h 27m
English
Packt Publishing
Content preview from Selenium WebDriver 3 Practical Guide - Second Edition

Understanding the JSON wire protocol

In many places, we have mentioned that WebDriver uses the JSON wire protocol to communicate between client libraries and different driver (that is, Chrome Driver, IE Driver, Gecko Driver, and so on) implementations. In this section, we will see exactly what it is and which different JSON APIs a client library should implement to talk to the drivers.

JavaScript Object Notation (JSON) is used to represent objects with complex data structures. It is used primarily to transfer data between a server and a client on the web. It has become an industry standard for various REST web services, offering a strong alternative to XML.

A sample JSON file, saved as a .json file, will look as follows:

{  "firstname":"John", ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Selenium WebDriver 3.0 - Second Edition

Mastering Selenium WebDriver 3.0 - Second Edition

Mark Collin
Selenium Essentials

Selenium Essentials

Prashanth Sams
Learn Selenium

Learn Selenium

Unmesh Gundecha, Carl Cocchiaro

Publisher Resources

ISBN: 9781788999762Supplemental Content