In selenium Can we interact with browsers directly without using browsers web drivers like codedui

+1 vote
HI ,

In Coded ui we are not using any browsers webdrivers. we are using as below

BrowserWindow bw = BrowserWindow.Launch(new System.Uri("https://www.google.com") .

all the browser engines are build on js, only then why we  browser specific webdrivers . could u plz guide on this.
Aug 20, 2020 in Selenium by anonymous
• 3,190 points
2,085 views
The Selenium automation tools speak a language known as Selenese. Rather than issuing Selenese directly to the different types of browsers, web drivers are used to perform the translation. Btw what's your requirement though?!

1 answer to this question.

0 votes

As per my understanding of your query, you mean to ask the need for a web driver. 

If that's true you should know that Actually, we are implementing "Web driver" which is an interface in selenium.

 All browser-dependent drivers like ChromeDriver, FirefoxDriver, InternetExplorerDriver are Java classes that implement the WebDriver interface. 

This information is important because if you want to run your program against a different browser you do not need to change a bunch of your code for it to work, you just need to swap out the WebDriver for whichever browser you want.

Hope this helps!

answered Aug 20, 2020 by Sirajul
• 59,190 points

Related Questions In Selenium

0 votes
1 answer

What all commands can be used in Selenium Webdriver to interact with Web elements?

Hi Shaibya, some of the commands used ...READ MORE

answered Jul 15, 2019 in Selenium by Anvi
• 14,150 points
1,782 views