admin管理员组

文章数量:1305899

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?

本文标签: How do I find playwrightconfigts in a C playwright test projectStack Overflow