robocorp / rpaframework

Collection of open-source libraries and tools for Robotic Process Automation (RPA), designed to be used with both Robot Framework and Python
https://www.rpaframework.org/
Apache License 2.0
1.17k stars 225 forks source link

`RPA.Browser.Selenium` Do not handle webdriver for non-existing browsers #1139

Closed mikahanninen closed 11 months ago

mikahanninen commented 11 months ago

Fix for keyword Open Available Browser on how it handles webdrivers.

Previously webdrivers were handled in a direct loop over the preferred browser list. This process did not take into account if the user has a browser installed in the system thus eventually after downloading and instantiating a webdriver it failed because there wasn't a browser for that driver in the machine.

This fix will first check browser version can be detected (on the system) and if not then the driver is not going to be handled by the keyword.