diff --git a/docs/src/api/class-elementhandle.md b/docs/src/api/class-elementhandle.md index 7f2641999a..62a61e808e 100644 --- a/docs/src/api/class-elementhandle.md +++ b/docs/src/api/class-elementhandle.md @@ -777,7 +777,7 @@ Triggers a `change` and `input` event once all the provided options have been se **Usage** ```js -// single selection matching the value +// Single selection matching the value or label handle.selectOption('blue'); // single selection matching the label @@ -788,7 +788,7 @@ handle.selectOption(['red', 'green', 'blue']); ``` ```java -// single selection matching the value +// Single selection matching the value or label handle.selectOption("blue"); // single selection matching the label handle.selectOption(new SelectOption().setLabel("Blue")); @@ -797,7 +797,7 @@ handle.selectOption(new String[] {"red", "green", "blue"}); ``` ```python async -# single selection matching the value +# Single selection matching the value or label await handle.select_option("blue") # single selection matching the label await handle.select_option(label="blue") @@ -806,7 +806,7 @@ await handle.select_option(value=["red", "green", "blue"]) ``` ```python sync -# single selection matching the value +# Single selection matching the value or label handle.select_option("blue") # single selection matching both the label handle.select_option(label="blue") @@ -815,7 +815,7 @@ handle.select_option(value=["red", "green", "blue"]) ``` ```csharp -// single selection matching the value +// Single selection matching the value or label await handle.SelectOptionAsync(new[] { "blue" }); // single selection matching the label await handle.SelectOptionAsync(new[] { new SelectOptionValue() { Label = "blue" } }); diff --git a/docs/src/api/class-frame.md b/docs/src/api/class-frame.md index 8b2e6b7bf1..5ea3d8e6e0 100644 --- a/docs/src/api/class-frame.md +++ b/docs/src/api/class-frame.md @@ -1486,7 +1486,7 @@ Triggers a `change` and `input` event once all the provided options have been se **Usage** ```js -// single selection matching the value +// Single selection matching the value or label frame.selectOption('select#colors', 'blue'); // single selection matching both the value and the label @@ -1497,7 +1497,7 @@ frame.selectOption('select#colors', 'red', 'green', 'blue'); ``` ```java -// single selection matching the value +// Single selection matching the value or label frame.selectOption("select#colors", "blue"); // single selection matching both the value and the label frame.selectOption("select#colors", new SelectOption().setLabel("Blue")); @@ -1506,7 +1506,7 @@ frame.selectOption("select#colors", new String[] {"red", "green", "blue"}); ``` ```python async -# single selection matching the value +# Single selection matching the value or label await frame.select_option("select#colors", "blue") # single selection matching the label await frame.select_option("select#colors", label="blue") @@ -1515,7 +1515,7 @@ await frame.select_option("select#colors", value=["red", "green", "blue"]) ``` ```python sync -# single selection matching the value +# Single selection matching the value or label frame.select_option("select#colors", "blue") # single selection matching both the label frame.select_option("select#colors", label="blue") @@ -1524,7 +1524,7 @@ frame.select_option("select#colors", value=["red", "green", "blue"]) ``` ```csharp -// single selection matching the value +// Single selection matching the value or label await frame.SelectOptionAsync("select#colors", new[] { "blue" }); // single selection matching both the value and the label await frame.SelectOptionAsync("select#colors", new[] { new SelectOptionValue() { Label = "blue" } }); diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 1d66376562..21f7a70bad 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -3406,7 +3406,7 @@ Triggers a `change` and `input` event once all the provided options have been se **Usage** ```js -// single selection matching the value +// Single selection matching the value or label page.selectOption('select#colors', 'blue'); // single selection matching the label @@ -3418,7 +3418,7 @@ page.selectOption('select#colors', ['red', 'green', 'blue']); ``` ```java -// single selection matching the value +// Single selection matching the value or label page.selectOption("select#colors", "blue"); // single selection matching both the value and the label page.selectOption("select#colors", new SelectOption().setLabel("Blue")); @@ -3427,7 +3427,7 @@ page.selectOption("select#colors", new String[] {"red", "green", "blue"}); ``` ```python async -# single selection matching the value +# Single selection matching the value or label await page.select_option("select#colors", "blue") # single selection matching the label await page.select_option("select#colors", label="blue") @@ -3436,7 +3436,7 @@ await page.select_option("select#colors", value=["red", "green", "blue"]) ``` ```python sync -# single selection matching the value +# Single selection matching the value or label page.select_option("select#colors", "blue") # single selection matching both the label page.select_option("select#colors", label="blue") @@ -3445,7 +3445,7 @@ page.select_option("select#colors", value=["red", "green", "blue"]) ``` ```csharp -// single selection matching the value +// Single selection matching the value or label await page.SelectOptionAsync("select#colors", new[] { "blue" }); // single selection matching both the value and the label await page.SelectOptionAsync("select#colors", new[] { new SelectOptionValue() { Label = "blue" } }); diff --git a/docs/src/input.md b/docs/src/input.md index 20efdefb14..ec1e6e6239 100644 --- a/docs/src/input.md +++ b/docs/src/input.md @@ -144,7 +144,7 @@ Selects one or multiple options in the `