Skip to content

Commit 6c27426

Browse files
authored
Merge branch 'trunk' into renovate/mocha-10.x
2 parents 42bade2 + dcf6ab1 commit 6c27426

File tree

24 files changed

+360
-444
lines changed

24 files changed

+360
-444
lines changed

.github/workflows/link-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Link check
4444
continue-on-error: true # <- If set to false, run fails with broken links
45-
uses: untitaker/[email protected].42
45+
uses: untitaker/[email protected].43
4646
with:
4747
args: website_and_docs/public/ --check-anchors
4848

examples/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
selenium==4.26.0
1+
selenium==4.26.1
22
pytest
33
trio
44
pytest-trio

examples/python/tests/drivers/test_options.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def test_set_browser_name():
8484

8585
def test_set_browser_version():
8686
options = webdriver.ChromeOptions()
87-
options.browser_version = 'latest'
88-
assert options.capabilities['browserVersion'] == 'latest'
87+
options.browser_version = 'stable'
88+
assert options.capabilities['browserVersion'] == 'stable'
8989
driver = webdriver.Chrome(options=options)
9090
driver.get("https://www.selenium.dev/")
9191
driver.quit()

examples/python/tests/drivers/test_remote_webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_start_remote(server):
1313
options = webdriver.ChromeOptions()
1414
driver = webdriver.Remote(command_executor=server, options=options)
1515

16-
assert "localhost" in driver.command_executor._url
16+
assert "localhost" in driver.command_executor._client_config.remote_server_addr
1717
driver.quit()
1818

1919

examples/ruby/Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ GEM
44
ast (2.4.2)
55
base64 (0.2.0)
66
diff-lcs (1.5.1)
7-
json (2.7.2)
7+
json (2.7.5)
88
language_server-protocol (3.17.0.3)
99
logger (1.6.1)
1010
parallel (1.26.3)
@@ -29,7 +29,7 @@ GEM
2929
diff-lcs (>= 1.2.0, < 2.0)
3030
rspec-support (~> 3.13.0)
3131
rspec-support (3.13.0)
32-
rubocop (1.67.0)
32+
rubocop (1.68.0)
3333
json (~> 2.3)
3434
language_server-protocol (>= 3.17.0)
3535
parallel (~> 1.10)
@@ -39,7 +39,7 @@ GEM
3939
rubocop-ast (>= 1.32.2, < 2.0)
4040
ruby-progressbar (~> 1.7)
4141
unicode-display_width (>= 2.4.0, < 3.0)
42-
rubocop-ast (1.32.3)
42+
rubocop-ast (1.33.0)
4343
parser (>= 3.3.1.0)
4444
rubocop-rspec (3.1.0)
4545
rubocop (~> 1.61)

website_and_docs/content/documentation/webdriver/actions_api/_index.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: "Actions API"
3-
linkTitle: "Actions API"
2+
title: "アクション API"
3+
linkTitle: "アクション API"
44
weight: 14
55
description: >
6-
A low-level interface for providing virtualized device input actions to the web browser.
6+
仮想化されたデバイス入力アクションを Web ブラウザーに提供するための低レベルのインターフェイス。
77
---
88

99
In addition to the high-level [element interactions]({{< ref "/documentation/webdriver/elements/interactions.md" >}}),

website_and_docs/content/documentation/webdriver/bidi/_index.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "BiDirectional functionality"
2+
title: "双方向機能"
33
linkTitle: "BiDi"
44
weight: 16
55
aliases: [

website_and_docs/content/documentation/webdriver/browsers/_index.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ aliases: [
1111
]
1212
---
1313

14-
各ブラウザには、カスタムCapabilityと固有の機能があります
14+
各ブラウザにはカスタム機能とユニークな特徴があります

website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md

Lines changed: 54 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ title: "Chrome固有の機能"
33
linkTitle: "Chrome"
44
weight: 4
55
description: >-
6-
これらは、Google Chrome ブラウザに固有のCapabilityです
6+
これらは、Google Chromeブラウザに特有の機能と機能です
77
aliases: [
88
"/ja/documentation/capabilities/chromium"
99
]
1010
---
1111

12-
デフォルトでは、Selenium 4 は Chrome v75 以降と互換性があります。
13-
Chromeブラウザのバージョンと chromedriverのバージョンは、メジャーバージョンと一致する必要があることに注意してください
12+
これらは、Google Chromeブラウザに特有の機能と機能です。
13+
デフォルトでは、Selenium 4はChrome v75以上と互換性があります。Chromeブラウザのバージョンとchromedriverのバージョンは、メジャーバージョンが一致する必要があることに注意してください
1414

1515
## Options
1616

17-
全てのブラウザに共通のCapabilityについては、[オプション ページ]({{< ref "../drivers/options.md" >}})で説明しています
17+
すべてのブラウザに共通する機能は [オプション ページ]({{< ref "../drivers/options.md" >}})に記載されています
1818

19-
Chrome に固有のCapabilityは、Google の[Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)ページにあります
19+
ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)のページにドキュメントされています
2020

21-
基本的な定義済みオプションを使用してChromeセッションを開始すると、次のようになります
21+
基本的に定義されたオプションでChromeセッションを開始する場合は、次のようになります
2222

2323
{{< tabpane text=true >}}
2424
{{< tab header="Java" >}}
@@ -41,18 +41,16 @@ Chrome に固有のCapabilityは、Google の[Capabilities & ChromeOptions](http
4141
{{< /tab >}}
4242
{{< /tabpane >}}
4343

44-
さまざまなCapabilityを備えた一般的な使用例をいくつか示します。
4544

4645
### 引数
4746

48-
The `args` parameter is for a list of command line switches to be used when starting the browser.
49-
There are two excellent resources for investigating these arguments:
50-
* [Chrome Flags for Tooling](https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md)
51-
* [List of Chromium Command Line Switches](https://peter.sh/experiments/chromium-command-line-switches/)
47+
`args` パラメータは、ブラウザを起動する際に使用するコマンドラインスイッチのリストです。これらの引数を調査するための優れたリソースが2つあります:
48+
* [Chromeツール用フラグ](https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md)
49+
* [Chromiumコマンドラインスイッチの一覧](https://peter.sh/experiments/chromium-command-line-switches/)
5250

53-
Commonly used args include `--start-maximized`, `--headless=new` and `--user-data-dir=...`
51+
一般的に使用されるargsには以下が含まれます:`--start-maximized`, `--headless=new` and `--user-data-dir=...`
5452

55-
Add an argument to options:
53+
オプションに引数を追加:
5654

5755
{{< tabpane text=true >}}
5856
{{< tab header="Java" >}}
@@ -107,9 +105,7 @@ Add an argument to options:
107105

108106
`extensions` パラメーターはcrxファイルを受け入れます
109107

110-
The `extensions` parameter accepts crx files. As for unpacked directories,
111-
please use the `load-extension` argument instead, as mentioned in
112-
[this post](https://chromedriver.chromium.org/extensions).
108+
The `extensions` パラメータはcrxファイルを受け入れます。解凍されたディレクトリについては、代わりに `load-extension` 引数を使用してください。[この投稿](https://chromedriver.chromium.org/extensions)で述べたように。
113109

114110
オプションに拡張機能を追加します。
115111

@@ -140,13 +136,13 @@ please use the `load-extension` argument instead, as mentioned in
140136

141137
{{< tabpane text=true >}}
142138
{{% tab header="Java" %}}
143-
**Note**: This is already the default behavior in Java.
139+
**注意**: これはすでにJavaのデフォルトの動作です。
144140
{{% /tab %}}
145141
{{% tab header="Python" %}}
146142
{{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}}
147143
{{% /tab %}}
148144
{{% tab header="CSharp" %}}
149-
**Note**: This is already the default behavior in .NET.
145+
**注意**: これはすでに.NETのデフォルトの動作です。
150146
{{% /tab %}}
151147
{{< tab header="Ruby" >}}
152148
{{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L45" >}}
@@ -165,9 +161,8 @@ Chrome はさまざまな引数を追加します。
165161
これらの引数を追加したくない場合は、それらを `excludeSwitches` に渡します。
166162
一般的な例は、ポップアップブロッカーをオンに設定することです。
167163

168-
A full list of default arguments
169-
can be parsed from the
170-
[Chromium Source Code](https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc)
164+
デフォルトの引数の完全なリストは、
165+
[Chromium Source Code](https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc)から解析できます。
171166

172167
オプションに除外された引数を設定します。
173168

@@ -193,26 +188,24 @@ can be parsed from the
193188
{{< /tabpane >}}
194189

195190

196-
## Service
191+
## サービス
197192

198-
Examples for creating a default Service object, and for setting driver location and port
199-
can be found on the [Driver Service]({{< ref "../drivers/service.md" >}}) page.
193+
デフォルトのServiceオブジェクトを作成するための例や、ドライバーの場所とポートを設定する方法は、[Driver Service]({{< ref "../drivers/service.md" >}})ページにあります。
200194

201-
### Log output
195+
### ログ出力
202196

203-
Getting driver logs can be helpful for debugging issues. The Service class lets you
204-
direct where the logs will go. Logging output is ignored unless the user directs it somewhere.
197+
ドライバーログを取得することは、問題のデバッグに役立ちます。Serviceクラスを使用すると、ログの出力先を指定できます。ユーザーがどこかにログを指示しない限り、ログ出力は無視されます。
205198

206-
#### File output
199+
#### ファイル出力
207200

208-
To change the logging output to save to a specific file:
201+
ログ出力を特定のファイルに保存するように変更するには:
209202

210203
{{< tabpane text=true >}}
211204
{{% tab header="Java" %}}
212205
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L100-L101" >}}
213-
**Note**: Java also allows setting file output by System Property:\
214-
Property key: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\
215-
Property value: String representing path to log file
206+
**注意**: Javaでは、システムプロパティによってファイル出力を設定することもできます:\
207+
プロパティキー: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\
208+
プロパティ値: ログファイルへのパスを表す文字列
216209
{{% /tab %}}
217210
{{< tab header="Python" >}}
218211
{{< badge-version version="4.11" >}}
@@ -233,17 +226,17 @@ Property value: String representing path to log file
233226
{{< /tab >}}
234227
{{< /tabpane >}}
235228

236-
#### Console output
229+
#### コンソール出力
237230

238-
To change the logging output to display in the console as STDOUT:
231+
ログ出力をコンソールにSTDOUTとして表示するように変更するには:
239232

240233
{{< tabpane text=true >}}
241234
{{% tab header="Java" %}}
242235
{{< badge-version version="4.10" >}}
243236
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L114-L115" >}}
244-
**Note**: Java also allows setting console output by System Property;\
245-
Property key: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\
246-
Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
237+
**注意**: Javaでは、システムプロパティによってコンソール出力を設定することもできます。\
238+
プロパティキー: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\
239+
プロパティ値: `DriverService.LOG_STDOUT` または `DriverService.LOG_STDERR`
247240
{{% /tab %}}
248241
{{< tab header="Python" >}}
249242
{{< badge-version version="4.11" >}}
@@ -253,7 +246,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
253246
{{< badge-implementation >}}
254247
{{< /tab >}}
255248
{{% tab header="Ruby" %}}
256-
`$stdout` and `$stderr` are both valid values
249+
`$stdout` `$stderr` はどちらも有効な値です。
257250
{{< badge-version version="4.10" >}}
258251
{{< gh-codeblock path="examples/ruby/spec/browsers/chrome_spec.rb#L76" >}}
259252
{{% /tab %}}
@@ -265,18 +258,16 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
265258
{{< /tab >}}
266259
{{< /tabpane >}}
267260

268-
### Log level
269-
There are 6 available log levels: `ALL`, `DEBUG`, `INFO`, `WARNING`, `SEVERE`, and `OFF`.
270-
Note that `--verbose` is equivalent to `--log-level=ALL` and `--silent` is equivalent to `--log-level=OFF`,
271-
so this example is just setting the log level generically:
261+
### ログレベル
262+
利用可能なログレベルは6つあります:`ALL`, `DEBUG`, `INFO`, `WARNING`, `SEVERE`, そして `OFF``--verbose``--log-level=ALL` と同等であり、`--silent``--log-level=OFF`と同等であることに注意してください。このため、この例ではログレベルを一般的に設定しています:
272263

273264
{{< tabpane text=true >}}
274265
{{% tab header="Java" %}}
275266
{{< badge-version version="4.8" >}}
276267
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L129-L130" >}}
277-
**Note**: Java also allows setting log level by System Property:\
278-
Property key: `ChromeDriverService.CHROME_DRIVER_LOG_LEVEL_PROPERTY`\
279-
Property value: String representation of `ChromiumDriverLogLevel` enum
268+
**注意**: Javaでは、システムプロパティによってログレベルを設定することもできます:\
269+
プロパティキー: `ChromeDriverService.CHROME_DRIVER_LOG_LEVEL_PROPERTY`\
270+
プロパティ値: `ChromiumDriverLogLevel` 列挙型の文字列表現
280271
{{% /tab %}}
281272
{{< tab header="Python" >}}
282273
{{< badge-version version="4.11" >}}
@@ -297,21 +288,20 @@ Property value: String representation of `ChromiumDriverLogLevel` enum
297288
{{< /tab >}}
298289
{{< /tabpane >}}
299290

300-
### Log file features
301-
There are 2 features that are only available when logging to a file:
302-
* append log
303-
* readable timestamps
291+
### ログファイル機能
292+
ファイルにログを記録する際にのみ利用できる2つの機能があります:
293+
* ログの追加
294+
* 読みやすいタイムスタンプ
304295

305-
To use them, you need to also explicitly specify the log path and log level.
306-
The log output will be managed by the driver, not the process, so minor differences may be seen.
296+
これらを使用するには、ログパスとログレベルも明示的に指定する必要があります。ログ出力はプロセスではなくドライバーによって管理されるため、若干の違いが見られる場合があります。
307297

308298
{{< tabpane text=true >}}
309299
{{% tab header="Java" %}}
310300
{{< badge-version version="4.8" >}}
311301
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L147-L148" >}}
312-
**Note**: Java also allows toggling these features by System Property:\
313-
Property keys: `ChromeDriverService.CHROME_DRIVER_APPEND_LOG_PROPERTY` and `ChromeDriverService.CHROME_DRIVER_READABLE_TIMESTAMP`\
314-
Property value: `"true"` or `"false"`
302+
**注意**: Javaでは、これらの機能をシステムプロパティによって切り替えることもできます:\
303+
プロパティキー: `ChromeDriverService.CHROME_DRIVER_APPEND_LOG_PROPERTY` および`ChromeDriverService.CHROME_DRIVER_READABLE_TIMESTAMP`\
304+
プロパティ値: `"true"` または `"false"`
315305
{{% /tab %}}
316306
{{< tab header="Python" >}}
317307
{{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L104" >}}
@@ -331,19 +321,17 @@ Property value: `"true"` or `"false"`
331321
{{< /tab >}}
332322
{{< /tabpane >}}
333323

334-
### Disabling build check
324+
### ビルドチェックの無効化
335325

336-
Chromedriver and Chrome browser versions should match, and if they don't the driver will error.
337-
If you disable the build check, you can force the driver to be used with any version of Chrome.
338-
Note that this is an unsupported feature, and bugs will not be investigated.
326+
ChromedriverとChromeブラウザのバージョンは一致する必要があり、一致しない場合、ドライバーはエラーを返します。ビルドチェックを無効にすると、任意のバージョンのChromeでドライバーを強制的に使用できます。ただし、これはサポートされていない機能であり、バグは調査されません。
339327

340328
{{< tabpane text=true >}}
341329
{{% tab header="Java" %}}
342330
{{< badge-version version="4.8" >}}
343331
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L166-L167" >}}
344-
**Note**: Java also allows disabling build checks by System Property:\
345-
Property key: `ChromeDriverService.CHROME_DRIVER_DISABLE_BUILD_CHECK`\
346-
Property value: `"true"` or `"false"`
332+
**注意**: Javaでは、システムプロパティによってビルドチェックを無効にすることもできます:\
333+
プロパティキー: `ChromeDriverService.CHROME_DRIVER_DISABLE_BUILD_CHECK`\
334+
プロパティ値: `"true"` または `"false"`
347335
{{% /tab %}}
348336
{{< tab header="Python" >}}
349337
{{< badge-version version="4.11" >}}
@@ -365,11 +353,13 @@ Property value: `"true"` or `"false"`
365353
{{< /tabpane >}}
366354

367355

368-
## Special Features
356+
## 特別な機能
357+
358+
一部のブラウザは、それぞれに特有の追加機能を実装しています。
369359

370360
### キャスティング
371361

372-
タブの共有など、Chrome Castデバイスを操作できます
362+
Chrome Castデバイスを操作することができ、タブの共有も含まれます
373363

374364
{{< tabpane text=true >}}
375365
{{< tab header="Java" >}}
@@ -396,9 +386,7 @@ Property value: `"true"` or `"false"`
396386

397387
さまざまなネットワークの状態をシミュレートできます。
398388

399-
The following examples are for local webdrivers. For remote webdrivers,
400-
please refer to the
401-
[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}}) page.
389+
以下の例はローカルWebDriver用です。リモートWebDriverについては、[リモートWebDriver]({{< ref "../drivers/remote_webdriver" >}})ページを参照してください。
402390

403391
{{< tabpane text=true >}}
404392
{{< tab header="Java" >}}

0 commit comments

Comments
 (0)