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.
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.
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.
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.
Look at localmachine registry...
Microsoft.Win32.RegistryKey key =
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Clients\StartMenuInternet");
var browsers = key.GetSubKeyNames();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With