Opening Firefox Via the webbrowser Module + RPA Tools

webbrowser is a convenient Python standard library module. It opened my Firefox browser on my Ubuntu Linux operating system running on a Chromebook. This code is adapted from a Python Examples blog post. Below is a list of other browsers you can open with webbrowser. At the bottom of this post, you’ll find more tools to interact with browsers and GUIs programmatically.

import webbrowser
firefox_sh = '/usr/lib/firefox/'
url = ''
Type NameClass Name
webbrowser docs

Check out these other browser\gui automation tools:

see also: Robot Process Automation, Things You Can Do With a Browser in 2020