-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
As Selenium keeps on increasing the number of browsers it supports continuously (which is quite cool), it would be a really good idea to start maintaining a list of browsers that are being supported or the webdrivers that Selenium has.
This would allow apps using Selenium to always remain up-to-date with all the browsers and could save hard coding them in their own apps. For example, if they want to test an application on all browsers supported by Selenium or they want to take the browser name as a parameter from the user, it would be really helpful for them to know which browsers they can test on.
Right now, they have to get this list by trying hacks like getting all modules and removing 'common', 'remote' and 'support' from it.
Something like SUPPORTED_BROWSERS = ['firefox', 'chrome', 'ie', 'safari']
in the init file should do the trick.
Or even better, return a list of all the browser webdriver classes like selenium.webdriver.Firefox, selenium.webdriver.Chrome
bcoz that's what they will finally be using at the end. ;)