Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How is this library different from Robot Framework's Browser library? #142

Answered by atthaboon
wlad asked this question in Q&A
Discussion options

There is the Browser library which is based on playwright and is developed by the same guys who've build SeleniumLibrary. How is this library different from the Browser library?

You must be logged in to vote

Thanks a lot for you question.

robotframework-puppeteer first we aim to use puppeteer library as our lower layer.
But while waiting for the python library. We enhance the lower layer to able to plug and play with another engine like playwrights.

The Library major goal are:

  1. Flexibility: create a web test library that has the same interface (keyword) and still allow to use of different lower test library (playwright, puppeteer)

  2. Stable: by relying on officials and reducing dependency as much as possible
    The lower level implementation for robotframework-puppeteer is different from Brower library.
    robotframework-puppeteer will use the official python library to connect to the playwright di...

Replies: 1 comment 3 replies

Comment options

Thanks a lot for you question.

robotframework-puppeteer first we aim to use puppeteer library as our lower layer.
But while waiting for the python library. We enhance the lower layer to able to plug and play with another engine like playwrights.

The Library major goal are:

  1. Flexibility: create a web test library that has the same interface (keyword) and still allow to use of different lower test library (playwright, puppeteer)

  2. Stable: by relying on officials and reducing dependency as much as possible
    The lower level implementation for robotframework-puppeteer is different from Brower library.
    robotframework-puppeteer will use the official python library to connect to the playwright directly.

  3. Simple: as much as possible
    Most keyword we try to align with SeleniumLibrary that allow the old script can easily migrate.

You must be logged in to vote
3 replies
Comment options

Thank you. I though playwright is a successor of puppeteer so I was a bit confused. But after reading this I realise that puppeteer is still an actively maintained project:)

Is my assumption right, that you want to use https://github.com/pyppeteer/pyppeteer (as puppeteer wrapper) and https://github.com/microsoft/playwright-python (as playwright wrapper)? When importing robotframework-puppeteer the user can choose which one of the two is used under the hood?

If this lib is going to combine both low level layers (puppeteer AND playwright) under the hood then I'm not sure the name robotframework-puppeteer is a good choise.

Comment options

Is my assumption right, that you want to use https://github.com/pyppeteer/pyppeteer (as puppeteer wrapper) and https://github.com/microsoft/playwright-python (as playwright wrapper)? When importing robotframework-puppeteer the user can choose which one of the two is used under the hood?
Yes currently, user can choose from browser name 'pychrome' for playwright / 'ptchrome' for puppeteer.

Comment options

I'm not sure the name robotframework-puppeteer is a good choice.

Completely agree I still thinking for a while about the new library name.
My plan will be fork this library to be a new library name after we clear all remaining major issues.

Answer selected by atthaboon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants

AltStyle によって変換されたページ (->オリジナル) /