Sunday, January 6, 2019

It is very frequently asked interview question for me. I was no answer as till now we know only we need drivers( like chromedriver.exe, geckodriver.exe, IEDriverServer.exe) and pass them to the System.setProperty() to launch a browser using selenium web driver. But why?
Reason:
As selenium WebDriver has no native implementation of a browser, we have to direct all the webdriver commands through a driver server (driver file).
Driver server is a standalone server which implements WebDriver's wire protocol.
Wire protocol defines a RESTful web service using JSON over HTTP and is implemented in request/response pairs of "commands" and "responses".
The wire protocol will inherit its status codes from those used by the Driver Server.
Each Driver implements Webdriver protocol and starts a server on your system.  All your tests communicate to this server to run your tests
Note: Each browser contains web browser engine. To display the web content, the web browser engine is required. There are different web browser engines and driver servers for each web browsers.


Hope this helps!!!

Related Posts:

  • Explain public static void main(String[] args){} public static void main(String[] args){} or public static void main(String... args){}: Java main method is the entry point of any java program. Its syntax is always "public static void main(String[] args)". You can only… Read More
  • Fibonacci Series Write a Java Program to print Fibonacci  series up to 10        public class Fibonacci { public static void main(String[] args) { int num = 10;  … Read More
  • pom.xml in Maven A Project Object Model or POM is the fundamental unit of work in Maven. It contains the project configuration details used by Maven. Some of the configuration that can be specified in the POM are the project dependencies, th… Read More
  • 2nd highest salary of an employee? MySQL: Sub queries in SQL are great tool for this kind of scenario, here we first select maximum salary and then another maximum excluding result of subquery mysql> SELECT max(salary) FROM Employee WHERE salary NOT IN (S… Read More
  • foreach() method in Java Java API provides foreach() method since jdk1.8v. This method traverses each element of the collection until all elements have been Processed by the method or an exception is raised. Exceptions thrown by the Operation are pa… Read More

0 comments:

Post a Comment

Selenium Training in Realtime

Blog helps to a student or IT employee to develop or improve skills in Software Testing.

Followers

About Me

My photo
Hyderabad, Andhra Pradesh, India
I am Automation Testing Professional. I have completed my graduation in B.Tech (Computers) from JNTU Hyderabad and started my career in Software Testing accidentally since then, I passionate on learning new technologies

Contact Form

Name

Email *

Message *

Popular Posts