Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getting a list of installed browsers on the computer

Tags:

c#

I would like to know is there are any possibility to get a list of installed browsers on the computer using c#? I'm using Selenium WebDriver in my task and I need to know which browsers are installed because in Selenium I can only run a specific browser, for example for Firefox it will be:

IWebDriver driver = new FirefoxDriver();

I will appreciate any help.

like image 496
Zirochka Avatar asked Apr 26 '17 11:04

Zirochka


People also ask

What browser is installed on this computer?

In the browser's toolbar, click on “Help"or the Settings icon. Click the menu option that begins “About” and you'll see what type and version of browser you are using.

How many browsers are there for PC?

While the exact number of web browsers is difficult to define, scouring through web browsers lists brings a rough estimate: there are about 200 different web browsers out there. Some of them, like Chrome and Firefox, dominate the market.

Is the Web browser that comes with Windows?

For most of the history of the Web, the major web browsers were Internet Explorer, which is installed by default with the Microsoft Windows operating system, and Netscape Navigator, a free download.


1 Answers

Look at localmachine registry...

Microsoft.Win32.RegistryKey key =           
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Clients\StartMenuInternet");
var browsers = key.GetSubKeyNames();
like image 150
caner Avatar answered Oct 04 '22 03:10

caner