playwright: Play button cannot be found on VS code

Good Morning Playwright Team. I face an issue on Playwright where my green arrow button cannot be found. Could you assist me on this matter? (Shown in the photo below this sentence) Thank you so much for your assistance. I really appreciate it.

Playwright Screenshot(No play button)

System info

  • Playwright Version: [v1.XX]
  • Operating System: [All, Windows 11, Ubuntu 20, macOS 13.2, etc.]
  • Browser: [All, Chromium, Firefox, WebKit]
  • Other info:

Source code

  • I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

[https://github.com/your_profile/playwright_issue_title]

or

Config file

// playwright.config.ts
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
  projects: [
    {
      name: 'chromium',
      use: { ...devices['Desktop Chrome'], },
    },
});

Test file (self-contained)

it('should check the box using setChecked', async ({ page }) => {
  await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
  await page.getByRole('checkbox').check();
  await expect(page.getByRole('checkbox')).toBeChecked();
});

Steps

  • [Run the test]
  • […]

Expected

[Describe expected behavior]

Actual

[Describe actual behavior]

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 32 (5 by maintainers)

Most upvoted comments

@Tyll94 @johnfewell I guess all your tests are missed in Playwright test explorer. You need to go there and refresh it

Screenshot_100

I had to check chromium.

image

My tests randomly went missing so I had the same issue with the play button missing and this comment resolved my issue: https://github.com/microsoft/playwright/issues/23356#issuecomment-1839400890

@idan-faibish nope, I use npx playwright test command instead. because I need the auth dependency.

I had the exact same problem recently. I reinstalled the extensions and the playwright program, but nothing helped.
Then I remembered that I changed the settings recently “Preferences: Open User Settings (JSON)”.
I had "editor.glyphMargin": false, but true is needed (or remove this parameter from the settings).
Green buttons appeared)

The same is happening for me. They were there and working, and now they are gone. It happened all of a sudden.

I have the same problem…