You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** Settings ***
Library Browser jsextension=${CURDIR}/js-extensions/rfbrowser-lighthouse.js
Library Collections
*** Variables ***
${PORT} 9222
*** Test Cases ***
Example Test
${args} Create List --remote-debugging-port=${PORT}
New Context args=${args}
New Browser headless=false
New Page https://playwright.dev
Run Google Lighthouse ${PORT} ${CURDIR}
The problem is when you need to authenticate. Lighthouse opens a new browser context and this means that all authentication fields are gone.
Describe the solution you'd like One option is to use Persistent Context with playwrights launchPersistentContext function. This can take a directory for storage and other properties and then when lighthouse is activated it keeps the context.
So I guess adding a new persistent context keyword which takes a path as first input and all the other context arguments next would solve this problem.
Describe alternatives you've considered Maybe it is possible to explicitly support executing lighthouse from rf-browser using a designated keyword, however this might not be flexible enough, + it could require too much maintenance efforts.
Additional context I've tried to create a persistent context with a js extention:
Originally posten in MarketSquare/robotframework-browser#1832
by eldaduzman opened on Mar 5, 2022
Moved...
The text was updated successfully, but these errors were encountered: