how to get list of browser installed in a system using python?
问题 I would like to write a script (in python) which scans the machine.(assumption is system has Linux) and retrieve the list of browser's installed. Looking for suggestions to implement it. I am using selenium to open links browser = webdriver.Firefox() Here we have to mention Firefox to open link in Firefox browser. What if user don't have Firefox in machine (chrome installed)? I had already searched but haven't got any result. P.S: If system has windows/Mac OS 回答1: A better approach: use try