

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is JSON wire protocol in selenium?
To understand we need to first have a fair idea of what JSON actually is, JSON stands for Java Script Object Notation. Now let's have a look at what a sample JSON input looks like −
{ "name": "Tutorials Point", "topic": "Selenium", "Address": "India" }
JSON today is one of the most widely used and accepted method for communication of heterogeneous system. JSON is used a lot in web services in REST and has been a strong competition to XML.
Let’s understand how Web driver uses it when testing the web applications −
WebDriver uses JSON as a medium to communicate between client libraries (Java, C#, Python and so on) and drivers (Firefox Driver, IE Driver, Chrome Driver). The request is to in the form an HTTP request which accepts input in the form of JSON. The operations are performed and the response of execution is shared back to the client in the form of JSON. Similarly, the RemoteWebDriver client and the RemoteWebDriver server use the JSON wire protocol to communicate among themselves.
To sum up, lets see how it works in a step by step manner −
In a server-client architecture it is necessary that the client and server should be in sync and are able to receive and send the request and response.
As the name suggests JSON(JavaScript Object Notation) is used to represent objects with complex data structures. JSON wire protocol acts as a mediator between client libraries and WebDrivers. It sends transfers data between the client and the server on the web.
The server doesn’t understand the programming language in which the program is created, it just understands the protocol, and here comes the role of JSON wire Protocol.
It uses the process of serialization(convert Object’s data to JSON Format) and de-serialization(convert JSON format to object) just like REST web services.
Note − JSON Wire Protocol is obsolete now and no longer used.
- Related Questions & Answers
- How does JSON wire protocol work?
- What is ICMP Protocol?
- What is Protocol Layering?
- What is protocol graph? Compare the network interface and protocol
- What is RSVP (Resource Reservation Protocol)?
- What is the Function of Protocol?
- What is Address Resolution Protocol (ARP)?
- What is Exterior Gateway Protocol (EGP)?
- What is Wireless Application Protocol (WAP)?
- What is Adaptive Internet Protocol (AIP)?
- What is Invisible Internet Protocol (I2P)?
- What is consensus protocol in Block Chain?
- What is the POP Protocol in Computer Network?
- What is the MQTT protocol in Computer Network ?
- What is the I2C Protocol in Computer Network?