question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] MS Edge Chromium cannot end msedge.exe processes in HEAD mode

See original GitHub issue

Context:

  • Playwright Version: tested on versions 1.6.1, 1.3.0 and 1.4.0

  • Operating System: Edition Windows 10 Enterprise Version 20H2 Installed on ‎8/‎20/‎2020 OS build 19042.630 Experience Windows Feature Experience Pack 120.2212.31.0

  • Node.js version: v12.10.0

  • Browser: MS Edge Chromium Version 86.0.622.69

  • Extra: Jest v. 23.6 on Visual Studio Code

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:

import { chromium } from "playwright";

import { getEdgePath } from "edge-paths";

jest.setTimeout(10000);
test("Basic Test", async () => {
    const browser = await chromium.launch({
        headless: false,
        executablePath: getEdgePath()
    });
    const context = await browser.newContext();
    const page = await context.newPage();
    await page.goto("https://www.google.com");
    await page.close();
    await context.close();
    await browser.close();
});

Describe the bug If you run this test it will pass but then you will see image

console.error node_modules/playwright/lib/server/helper.js:59 [Error: EPERM: operation not permitted, unlink ‘[userpath]\AppData\Local\Temp\playwright_chromiumdev_profile-IAueWz\CrashpadMetrics-active.pma’] { errno: -4048, code: ‘EPERM’, syscall: ‘unlink’, path: ‘[userpath]\AppData\Local\Temp\playwright_chromiumdev_profile-IAueWz\CrashpadMetrics-active.pma’ } This error won’t occur if you run the test in head mode.

And if you open task manager you will see two msedge.exe processes that haven’t ended <-- This issue is specific to Edge browser I believe

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
helen3141commented, Dec 8, 2020

After updating Edge Chromium to version 87, I no longer see this issue (even in jest). Please feel free to close this issue. Thanks for your time!

0reactions
pavelfeldmancommented, Dec 1, 2020

Here is the snippet:

import { folio, expect } from "@playwright/test";

// We'll be extending standard folio.
const fixtures = folio.extend();
// Overriding browser options with executable path.
fixtures.browserOptions.override(async ({ browserOptions }, test) => {
  await test({
    ...browserOptions,
    executablePath: 'C:\\Program Files (x86)\\Microsoft\\Edge Dev\\Application\\88.0.702.0\\msedge.exe'
  });
});
// Instead of testing all browsers, override it to only run Chromium.
folio.generateParametrizedTests('browserName', ['chromium']);

// Now the test itself, the code above can be required from a utility file.
const { it } = fixtures.build();

it("test google page", async ({ page }) => {
  await page.goto("https://www.google.com");
  expect(await page.title()).toContain('Google');
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Fix] Microsoft Edge (MSEdge.exe) Always Keeps Running in ...
When you launch Microsoft Edge browser, its executable MSEdge.exe starts running in background. You can check it using Task Manager (Ctrl+Shift+ ...
Read more >
Unable to launch Edge : r/MicrosoftEdge - Reddit
Tring to turn off the Microsoft Edge smartscreen settings and it works for me. Go to settings, Windows security and select App &...
Read more >
What is "msedge.exe.exe"? and How to Fix It? - Appuals.com
Inside the Task Manager, head over to the Details tab and look for any msedge.exe processes that might not be related to Microsoft...
Read more >
Common Microsoft Edge Problems, and How to Fix Them
Head over to the “…” button and choose Settings. Then click Choose What to Clear under Clear Browser Data. Clear out your browser...
Read more >
Microsoft Edge 'Processes" Shown in Task Manager, Windows ...
664.60. This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found