← Back to Discord Forum

autoplay-policy arg not recognized in CICD

I am overriding the plugin fixture to allow for browser audio like so:

def browser_type_launch_args(browser_type_launch_args):
    """Ensure the autoplay capapbility in the browser"""
    launch_options = {**browser_type_launch_args, "args": ["--autoplay-policy=no-user-gesture-required"]}
    return launch_options

This works perfectly fine when ran locally, but fails inside docker for ALL webkit tests with:

[pid=2503][err] Cannot parse arguments: Unknown option --autoplay-policy=no-user-gesture-required

What am I doing wrong?

This thread is trying to answer question "Why is the autoplay-policy argument not recognized in CICD despite working locally?"

1 reply

Also it is worth mentioning - the setting doesn't work for Firefox outside docker. Only chromium (outside docker webkit works even without this setting).

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.