@@ -3,22 +3,22 @@ title: "Chrome固有の機能"
33linkTitle : " Chrome"
44weight : 4
55description : >-
6- これらは、Google Chrome ブラウザに固有のCapabilityです 。
6+ これらは、Google Chromeブラウザに特有の機能と機能です 。
77aliases : [
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