Skip to content

[BUG] Site doesn't load on Windows webkit due to audio context error #14105

@Nav-2d

Description

@Nav-2d

Context:

  • Playwright Version:1.21.1
  • Operating System: Windows
  • Node.js version: 14
  • Browser: WebKit
  • Extra: [any specific details about your environment]

Code Snippet

Help us help you! Put down a short code snippet that illustrates your bug and
that we can run and debug locally. For example:

test('example test', async ({ page }) => {
  await page.goto("https://monarch-test.tinyeye.com"); 
  await.page.pause();
});

// config.js
{
  name: 'Desktop Safari',
  use: { browserName: 'webkit' },
},

Describe the bug
This issue is related to #12823 and #13113

The site still doesn't load on Windows (webkit). The error in the console is attached
image

Tentative solution for now that works:

await page.addInitScript(() => {
    class AudioContext {}
    (window as any).AudioContext = AudioContext;
})

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions