MyGit

v1.47.0

microsoft/playwright

版本发布时间: 2024-09-06 05:13:02

microsoft/playwright最新发布版本:v1.49.0(2024-11-19 02:33:25)

Network Tab improvements

The Network tab in the UI mode and trace viewer has several nice improvements:

Network tab now has filters

Credit to @kubajanik for these wonderful improvements!

--tsconfig CLI option

By default, Playwright will look up the closest tsconfig for each imported file using a heuristic. You can now specify a single tsconfig file in the command line, and Playwright will use it for all imported files, not only test files:

# Pass a specific tsconfig
npx playwright test --tsconfig tsconfig.test.json

APIRequestContext now accepts URLSearchParams and string as query parameters

You can now pass URLSearchParams and string as query parameters to APIRequestContext:

test('query params', async ({ request }) => {
  const searchParams = new URLSearchParams();
  searchParams.set('userId', 1);
  const response = await request.get(
      'https://jsonplaceholder.typicode.com/posts',
      {
        params: searchParams // or as a string: 'userId=1'
      }
  );
  // ...
});

Miscellaneous

Browser Versions

This version was also tested against the following stable channels:

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-09-06发行的版本