prateek goyal
prateek goyal

Reputation: 137

what is browser's native support according to selenium webdriver

While learning about selenium, I came to know that:

Selenium Webdriver makes direct calls to the browser using each browser’s native support for automation

I want to know, What is this native support? Is it "some HTML code", or "javascript code"?

Is there any good web link, where I can know that in what language or script, browsers are written in?

Upvotes: 2

Views: 5207

Answers (3)

Johnny
Johnny

Reputation: 15413

Your language-binded code (for example, Java) implements WebDriver Interface which communicates with different browser drivers via HTTP commands. Those drivers communicate natively (not http / JS injections / OS wrapping) with the browser.

By the way, here's lay the main difference between Selenium 2 and Selenium 3. in Selenium 2 it was the Selenium project responsibility to provide the driver for each browser and in Selenium 3 all the major browser vendors ship their own WebDriver implementations and because they know their browsers the best, it's much more stable and robust.

enter image description here

About the native implementations. Each browser native implementation is different and tightly couple to the way browser works!

For example, Chrome driver. Communication is done via special Automation Proxy module: enter image description here

And in Internet Explorer, it's done using Communication APIs:

enter image description here

Hope it helps.

Upvotes: 4

prateek goyal
prateek goyal

Reputation: 137

I think following link gives some insight into the question.

http://taligarsiel.com/Projects/howbrowserswork1.htm

Browser engine is the component of a browser, which parses HTML, CSS and XML.

Upvotes: -1

Aakash Shah
Aakash Shah

Reputation: 89

For each and every browser some automation methods are defined by the vendors like for Chrome, Firefox they have some automation support built within them and the selenium uses the same for the test automation, in addition Selenium is the core of automation and that is why each and every browser has support for Selenium, so selenium has to just call that code and then the browser will work according to it.

Upvotes: 0

Related Questions