Running Playwright based Browser library in Lab

It is possible to play with Playwright based robotframework-browser in Lab now.
It requires installation steps described below.

Update config/conda.yaml with nodejs and the new library, apply changes:

channels:
  - defaults
  - conda-forge
dependencies:
  - python=3.7.5
  - pip=20.1
  - nodejs
  - pip:
    - robotframework-browser

Open Lab’s terminal (File -> New -> Terminal) and run
rfbrowser init

Now it should work in notebook mode, e.g. with this kind of script:

*** Settings ***
Library  Browser
*** Tasks ***
Try out the new Browser library
    New Page    https://playwright.dev
    Get Text    h1    ==    🎭 Playwright

We are planning to integrate this to RPA Framework for easier use.

5 Likes