Rayrun
← Back to Discord Forum

"Using an older version of Firefox can corrupt.." popup

𝔩𝔲ʞ𝔞posted in #help-playwright
Open in Discord
𝔩𝔲ʞ𝔞
𝔩𝔲ʞ𝔞

Hi all,

I'm using launch_persistent_context() to load a Firefox profile onto the browser. However, when running my script, I get the error shown in the image. How can I fix this? Thanks! :)

import time
from playwright.sync_api import Playwright, sync_playwright, expect

with sync_playwright() as playwright:
    context = playwright.firefox.launch_persistent_context(user_data_dir='C:/Users/Virus/AppData/Roaming/Mozilla/Firefox/Profiles/5let3xo1.default-nightly', headless=False)
image.png

This thread is trying to answer question "How can the user fix the error popup that says using an older version of Firefox can corrupt data when using launch_persistent_context() to load a Firefox profile onto the browser?"

2 replies
𝔩𝔲ʞ𝔞
𝔩𝔲ʞ𝔞

clicking "Create New Profile" does nothing.

𝔩𝔲ʞ𝔞
𝔩𝔲ʞ𝔞

so I found the firefox nightly that Playwright uses, logged in, and selected the profile of that version. then I put that one in the script and it seems to work, however I'm not logged in.

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 [email protected].