How do I find playwright.config.ts in a C# playwright test project - Stack Overflow

admin2025-04-16  2

I have a visual studio - c# - playwright test project which is coming together very nicely. One thing I am struggling with is changing the default testIdAttribute value.

I have seen this example

import { defineConfig } from '@playwright/test';

export default defineConfig({
  use: {
    testIdAttribute: 'data-pw'
  }
});

which relates to the file playwright.config.ts, I have searched for this file in the project and I cannot find that file anywhere. Is it created when Playwright is added to the project or does one have to create it when changing default values.

Any thoughts please?

转载请注明原文地址:http://www.anycun.com/QandA/1744762669a87264.html