# Moving Robot Framework browser automation to 2020 (or 2021)

**URL:** <https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323>\
**Category:** Browser-Dev\
**Created:** [5 June 2020 09:53 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323 "2020-06-05T09:53:08Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![mkorpela](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mkorpela/32/33_2.png) [@mkorpela](https://forum.robotframework.org/u/mkorpela)\
**Post date:** [22 July 2020 13:29 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/21 "2020-07-22T13:29:01Z")

</div>

Released Browser Library [0.9.0](https://github.com/MarketSquare/robotframework-browser/releases/tag/v0.9.0)

Changes from 0.8.0:  
Added:  
Get Element - reference to a Playwirght element handle  
Get Style - Gets the computed CSS properties of an element  
Http - for making http requests directly from page context  
Ability to execute Browser library keywords on background with:  
Promise To, Wait For and Wait For All Promises

Renamed:  
Local Storage Clear, Get, Remove, Set and SessionStorage Clear, Get, Remove, Set  
to  
LocalStorage Clear, Get Item, Remove Item, Set Item and SessionStorage Clear, Get Item, Remove Item, Set Item.

Renamed:  
Create Browser, Create Context, Create Page  
to  
New Browser, New Context, and New Page.

Library is now usable directly from Python. It can also be used with pytest and has type hints for better support of autocompletion.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [22 July 2020 13:41 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/22 "2020-07-22T13:41:17Z")

</div>

> [@mkorpela](#):
>
> Library is now usable directly from Python. It can also be used with pytest and has type hints for better support of autocompletion.

Does this mean I do not need to install `node` ?  
That is my major blocking point to experiment the library.

---

<div class="post-metadata">

**Author:** ![mkorpela](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mkorpela/32/33_2.png) [@mkorpela](https://forum.robotframework.org/u/mkorpela)\
**Post date:** [22 July 2020 13:46 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/23 "2020-07-22T13:46:13Z")

</div>

Unfortunately yes you do.

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [22 July 2020 16:00 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/24 "2020-07-22T16:00:05Z")

</div>

I would like to have just a single library install.  
For example, I like AppiumDesktop because it brings its own instance of node.js 🙂

---

<div class="post-metadata">

**Author:** ![René](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ren%C3%A9/32/7_2.png) [@René](https://forum.robotframework.org/u/Ren%C3%A9)\
**Post date:** [23 July 2020 17:37 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/25 "2020-07-23T17:37:04Z")

</div>

I would also like this in the future, that a pip install just does everything.

---

<div class="post-metadata">

**Author:** ![René](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ren%C3%A9/32/7_2.png) [@René](https://forum.robotframework.org/u/Ren%C3%A9)\
**Post date:** [23 July 2020 17:48 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/26 "2020-07-23T17:48:45Z")

</div>

Hi @davidk1

@mkorpela had the initial idea and his idea to go with playwright is in my opinion the right one.

Basically some puppeteer developers are founders of Playwright.  
Playwright has Cross-Browser support and better Context management.

This blogpost describes is quite clear.

> **[Playwright vs. Puppeteer: Which should you choose? - LogRocket Blog](https://blog.logrocket.com/playwright-vs-puppeteer/)**
>
> Playwright and Puppeteer are both browser automation libraries for Node.js. Where they differ is in their browser support and potential long-term viability.

And regarding Cypress:  
Cypress is a full framework with tests and assertions and execution engine that does some magic. and we “just” needed a super fancy nice automation API.  
The framework must be Robot.

Also Playwright has super cool selectors and work awesomely well with WebComponents and ShadowDoms.

I never had a second of regret that mikko chose Playwright.

---

<div class="post-metadata">

**Author:** ![mkorpela](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mkorpela/32/33_2.png) [@mkorpela](https://forum.robotframework.org/u/mkorpela)\
**Post date:** [23 July 2020 19:40 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/27 "2020-07-23T19:40:52Z")

</div>

> [@René](#):
>
> I never had a second of regret that mikko chose Playwright.

I actually suggested Puppeteer first to Tatu and he made the leap even further with Playwright.

---

<div class="post-metadata">

**Author:** ![René](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/ren%C3%A9/32/7_2.png) [@René](https://forum.robotframework.org/u/Ren%C3%A9)\
**Post date:** [23 July 2020 22:58 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/28 "2020-07-23T22:58:50Z")

</div>

Oh. Ok.  
Then no honor to Mikko and all the honor goes to Tatu Aalto 😂

---

<div class="post-metadata">

**Author:** ![v1rtuo](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/v1rtuo/32/541_2.png) [@v1rtuo](https://forum.robotframework.org/u/v1rtuo)\
**Post date:** [27 July 2020 19:47 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/29 "2020-07-27T19:47:12Z")

</div>

This is my first day back to work after vacations – I thought to start it with something new and try this out 🙂 After writing few tests it feels like a really nice solution; my only struggle was me being still bit on vacay mode and ignoring first the need for Python update 🤪

Was there a plan to include DeviceDescriptors? I have been using Puppeteer since April and those have been quite useful.

---

<div class="post-metadata">

**Author:** ![mkorpela](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mkorpela/32/33_2.png) [@mkorpela](https://forum.robotframework.org/u/mkorpela)\
**Post date:** [28 July 2020 04:58 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/30 "2020-07-28T04:58:29Z")

</div>

> [@v1rtuo](#):
>
> Was there a plan to include DeviceDescriptors? I have been using Puppeteer since April and those have been quite useful.

Lets put it on the list 🙂

---

<div class="post-metadata">

**Author:** ![davidk1](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@davidk1](https://forum.robotframework.org/u/davidk1)\
**Post date:** [28 July 2020 13:05 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/31 "2020-07-28T13:05:31Z")

</div>

@René Makes sense. Thank you for clarification.

---

<div class="post-metadata">

**Author:** ![mkorpela](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/mkorpela/32/33_2.png) [@mkorpela](https://forum.robotframework.org/u/mkorpela)\
**Post date:** [4 August 2020 14:00 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/32 "2020-08-04T14:00:21Z")

</div>

[https://github.com/MarketSquare/robotframework-browser/releases/tag/v0.12.0](https://github.com/MarketSquare/robotframework-browser/releases/tag/v0.12.0) New Release. Some pretty breaking changes included.

- Autoclosing feature which will automatically close contexts and pages when the context they were opened in closes (so a global ` __init__.robot` suite setup opened page will stay open for all tests, normal suite setup items stay open for the suite and test setups close for tests).
- @aaltat contributed us some Cookie keywords, so most things you would want to use cookies for should now be possible.-
- File uploading and waiting for file downloads (check the kw docs for specifics).
- Get BoundingBox to get element sizes and locations
- More examples in README
- `rfbrowser init` is back because executing the dependency downloads on library import had stability issues

---

<div class="post-metadata">

**Author:** ![kenjiroe](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/kenjiroe/32/589_2.png) [@kenjiroe](https://forum.robotframework.org/u/kenjiroe)\
**Post date:** [22 January 2021 10:09 UTC](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323/33 "2021-01-22T10:09:19Z")

</div>

But I usage Puppeteer with Robot Framework have error : Keyword ‘Capture Page Screenshot’ could not be run on failure: Maximum limit of started keywords exceeded.

[Previous page](https://forum.robotframework.org/t/moving-robot-framework-browser-automation-to-2020-or-2021/323.md?page=1)
