Selenium Library or Browser Library in Robot Framework

Hi Ravi,

Are you trying to start a religious war? :rofl::rofl::rofl:

  • Selenium Library drives Selenium which is based on Java
  • Browser Library drives Playwright which is based on NodeJS

I have used both and found that both were more than adequate for my needs and probably for most users.
Browser Library has some obscure features out of the box that Selenium Library didn’t have however i’ve heard there are extensions for Selenium to implement them.
On the other hand Selenium Library can be installed with a simple pip install command, where as Browser Library requires you to install NodeJS first and run an initialisation script so it’s a little harder to get started.
If your AUT is NodeJS based I would say choose Browser Library, likewise of your AUT is Java based choose Selenium Library that way you’ll have developers familiar with the tech stacks if you run into issues, but otherwise I couldn’t give you a recommendation between them.

Dave.

1 Like