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.
@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.
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.
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.
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
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.