Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Feature]: "Pick locator" should respect Playwright launch configuration (maximize window / viewport settings)

オープン
#40,147 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
playwright, typescript, vscode

調査の方向性

まず、VS Code の "Pick locator" の実装と、それが Playwright のブラウザーを起動する方法を追跡します。その起動経路を、プロジェクトで設定されている use 設定、特に launchOptions と viewport と比較します。提供された設定例を使って動作を検証し、locator ブラウザーが --start-maximized や viewport: null などの設定を反映すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

P3-collecting-feedback
🚀 Feature Request

When using the "Pick locator" feature in Playwright within VS Code, the browser launched for locator selection should respect the project’s configured use settings, including launchOptions and viewport.

In particular, it should support launching the browser in a maximized state when configured via launchOptions.args (e.g. --start-maximized) or equivalent settings.

Example
export default defineConfig({
  use: {
    headless: false,
    launchOptions: {
      args: ['--start-maximized'],
    },
    viewport: null,
  },
});

When clicking "Pick locator", the expectation is that the browser opens maximized based on the above configuration.

Motivation

The "Pick locator" feature is commonly used during test authoring to identify and select elements on complex or responsive UIs. A maximized browser significantly improves visibility and usability in these scenarios.

Currently, there is a mismatch between:

  • the browser state used for locator selection, and
  • the configured test execution environment

This inconsistency can slow down development and make locator selection harder, especially for layouts that rely on full viewport width or responsive behaviour.

Aligning "Pick locator" with Playwright configuration would improve consistency and reduce friction when writing and debugging tests.

主要言語
TypeScript
スター
97.4k
フォーク
6.6k
平均マージ
18時間 15分
マージ済み PR(30日)
318

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/playwright のほかの issue

microsoft/playwright の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。