Rayrun
← Back to Discord Forum

Browser Fixture Not Using Context

I am attempting to write a fixture that will choose between CDP or browser based on a config file. It does work, except it looks like baseURL from the config file isn't carried over to the newly created browser page (line 22: await browser.newPage()). How can I get the context to still use what's in the config file?

image.png
image.png
image.png

This thread is trying to answer question "How can I get the context to still use what's in the config file when creating a new browser page?"

1 reply

Browser Fixture Not Using Context

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.