Recommended library for web automation

Hi there,
Can someone tell me what is the latest or the recommended library currently used for RPA using RF, is it Browser library or Selenium library. And which one would you recommend.

Thanks!

Hi Swapneil,

There is no one “right” way, that you must or should do things, there are options.

  • SeleniumLibrary uses Selenium, so comes with all the Pro’s and Con’s of Selenium
  • Browser Library uses Playwright, so comes with all the Pro’s and Con’s of Playwright

They both drive a real web browser, they just use different mechanisms to do it, most of the time it makes little difference which you choose and it’s often just personal preference or familiarity that drives the choice.

There are situations where one or the other might be better, i.e. if you need to connect to a Selenium grid or deal with shadow-dom.

There is another option: RequestsLibrary, which makes raw http protocol requests (GET’s POST’s, etc) directly rather than using a browser, RequestsLibrary has a much lighter foot print and may give you a more reliable test/task but it can also be harder to script your keywords in the beginning.

SeleniumLibrary, Browser Library and RequestsLibrary are all actively maintaned

I recommend you read a bit about each library, understand their strengths and weaknesses, and then decide which you think is best for your project, everyone has different requirements so having options enables you to find what woks best for your requirements.

Dave.

3 Likes

Hi,

Agrees with Dave, but in my opinion, take a look at Browser lib (Playwright) first.

And check:

Regards
Olivier

2 Likes