diff --git a/website_and_docs/content/documentation/webdriver/actions_api/_index.ja.md b/website_and_docs/content/documentation/webdriver/actions_api/_index.ja.md index 619ed3c106e4..8a0dc641c0eb 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/_index.ja.md @@ -1,9 +1,9 @@ --- -title: "Actions API" -linkTitle: "Actions API" +title: "アクション API" +linkTitle: "アクション API" weight: 14 description: > - A low-level interface for providing virtualized device input actions to the web browser. + 仮想化されたデバイス入力アクションを Web ブラウザーに提供するための低レベルのインターフェイス。 --- In addition to the high-level [element interactions]({{< ref "/documentation/webdriver/elements/interactions.md" >}}), diff --git a/website_and_docs/content/documentation/webdriver/bidi/_index.ja.md b/website_and_docs/content/documentation/webdriver/bidi/_index.ja.md index 79eab30df335..739fa0bdaa8b 100644 --- a/website_and_docs/content/documentation/webdriver/bidi/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/bidi/_index.ja.md @@ -1,5 +1,5 @@ --- -title: "BiDirectional functionality" +title: "双方向機能" linkTitle: "BiDi" weight: 16 aliases: [ diff --git a/website_and_docs/content/documentation/webdriver/browsers/_index.ja.md b/website_and_docs/content/documentation/webdriver/browsers/_index.ja.md index a9f70336eb02..e02362bd530a 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/_index.ja.md @@ -11,4 +11,4 @@ aliases: [ ] --- -各ブラウザには、カスタムCapabilityと固有の機能があります。 \ No newline at end of file +各ブラウザにはカスタム機能とユニークな特徴があります。 \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md index ae73388a0d65..c64e787ea697 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md @@ -3,22 +3,22 @@ title: "Chrome固有の機能" linkTitle: "Chrome" weight: 4 description: >- - これらは、Google Chrome ブラウザに固有のCapabilityです。 + これらは、Google Chromeブラウザに特有の機能と機能です。 aliases: [ "/ja/documentation/capabilities/chromium" ] --- -デフォルトでは、Selenium 4 は Chrome v75 以降と互換性があります。 -Chromeブラウザのバージョンと chromedriverのバージョンは、メジャーバージョンと一致する必要があることに注意してください。 +これらは、Google Chromeブラウザに特有の機能と機能です。 +デフォルトでは、Selenium 4はChrome v75以上と互換性があります。Chromeブラウザのバージョンとchromedriverのバージョンは、メジャーバージョンが一致する必要があることに注意してください。 ## Options -全てのブラウザに共通のCapabilityについては、[オプション ページ]({{< ref "../drivers/options.md" >}})で説明しています。 +すべてのブラウザに共通する機能は [オプション ページ]({{< ref "../drivers/options.md" >}})に記載されています。 -Chrome に固有のCapabilityは、Google の[Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)ページにあります。 +ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)のページにドキュメントされています。 -基本的な定義済みオプションを使用してChromeセッションを開始すると、次のようになります。 +基本的に定義されたオプションでChromeセッションを開始する場合は、次のようになります: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -41,18 +41,16 @@ Chrome に固有のCapabilityは、Google の[Capabilities & ChromeOptions](http {{< /tab >}} {{< /tabpane >}} -さまざまなCapabilityを備えた一般的な使用例をいくつか示します。 ### 引数 -The `args` parameter is for a list of command line switches to be used when starting the browser. -There are two excellent resources for investigating these arguments: -* [Chrome Flags for Tooling](https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md) -* [List of Chromium Command Line Switches](https://peter.sh/experiments/chromium-command-line-switches/) +`args` パラメータは、ブラウザを起動する際に使用するコマンドラインスイッチのリストです。これらの引数を調査するための優れたリソースが2つあります: +* [Chromeツール用フラグ](https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md) +* [Chromiumコマンドラインスイッチの一覧](https://peter.sh/experiments/chromium-command-line-switches/) -Commonly used args include `--start-maximized`, `--headless=new` and `--user-data-dir=...` +一般的に使用されるargsには以下が含まれます:`--start-maximized`, `--headless=new` and `--user-data-dir=...` -Add an argument to options: +オプションに引数を追加: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -107,9 +105,7 @@ Add an argument to options: `extensions` パラメーターはcrxファイルを受け入れます -The `extensions` parameter accepts crx files. As for unpacked directories, -please use the `load-extension` argument instead, as mentioned in -[this post](https://chromedriver.chromium.org/extensions). +The `extensions` パラメータはcrxファイルを受け入れます。解凍されたディレクトリについては、代わりに `load-extension` 引数を使用してください。[この投稿](https://chromedriver.chromium.org/extensions)で述べたように。 オプションに拡張機能を追加します。 @@ -140,13 +136,13 @@ please use the `load-extension` argument instead, as mentioned in {{< tabpane text=true >}} {{% tab header="Java" %}} -**Note**: This is already the default behavior in Java. +**注意**: これはすでにJavaのデフォルトの動作です。 {{% /tab %}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L51" >}} {{% /tab %}} {{% tab header="CSharp" %}} -**Note**: This is already the default behavior in .NET. +**注意**: これはすでに.NETのデフォルトの動作です。 {{% /tab %}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L45" >}} @@ -165,9 +161,8 @@ Chrome はさまざまな引数を追加します。 これらの引数を追加したくない場合は、それらを `excludeSwitches` に渡します。 一般的な例は、ポップアップブロッカーをオンに設定することです。 -A full list of default arguments -can be parsed from the -[Chromium Source Code](https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc) +デフォルトの引数の完全なリストは、 +[Chromium Source Code](https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc)から解析できます。 オプションに除外された引数を設定します。 @@ -193,26 +188,24 @@ can be parsed from the {{< /tabpane >}} -## Service +## サービス -Examples for creating a default Service object, and for setting driver location and port -can be found on the [Driver Service]({{< ref "../drivers/service.md" >}}) page. +デフォルトのServiceオブジェクトを作成するための例や、ドライバーの場所とポートを設定する方法は、[Driver Service]({{< ref "../drivers/service.md" >}})ページにあります。 -### Log output +### ログ出力 -Getting driver logs can be helpful for debugging issues. The Service class lets you -direct where the logs will go. Logging output is ignored unless the user directs it somewhere. +ドライバーログを取得することは、問題のデバッグに役立ちます。Serviceクラスを使用すると、ログの出力先を指定できます。ユーザーがどこかにログを指示しない限り、ログ出力は無視されます。 -#### File output +#### ファイル出力 -To change the logging output to save to a specific file: +ログ出力を特定のファイルに保存するように変更するには: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L100-L101" >}} -**Note**: Java also allows setting file output by System Property:\ -Property key: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\ -Property value: String representing path to log file +**注意**: Javaでは、システムプロパティによってファイル出力を設定することもできます:\ +プロパティキー: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\ +プロパティ値: ログファイルへのパスを表す文字列 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -233,17 +226,17 @@ Property value: String representing path to log file {{< /tab >}} {{< /tabpane >}} -#### Console output +#### コンソール出力 -To change the logging output to display in the console as STDOUT: +ログ出力をコンソールにSTDOUTとして表示するように変更するには: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L114-L115" >}} -**Note**: Java also allows setting console output by System Property;\ -Property key: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\ -Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` +**注意**: Javaでは、システムプロパティによってコンソール出力を設定することもできます。\ +プロパティキー: `ChromeDriverService.CHROME_DRIVER_LOG_PROPERTY`\ +プロパティ値: `DriverService.LOG_STDOUT` または `DriverService.LOG_STDERR` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -253,7 +246,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< badge-implementation >}} {{< /tab >}} {{% tab header="Ruby" %}} -`$stdout` and `$stderr` are both valid values +`$stdout` と `$stderr` はどちらも有効な値です。 {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/ruby/spec/browsers/chrome_spec.rb#L76" >}} {{% /tab %}} @@ -265,18 +258,16 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< /tab >}} {{< /tabpane >}} -### Log level -There are 6 available log levels: `ALL`, `DEBUG`, `INFO`, `WARNING`, `SEVERE`, and `OFF`. -Note that `--verbose` is equivalent to `--log-level=ALL` and `--silent` is equivalent to `--log-level=OFF`, -so this example is just setting the log level generically: +### ログレベル +利用可能なログレベルは6つあります:`ALL`, `DEBUG`, `INFO`, `WARNING`, `SEVERE`, そして `OFF`。`--verbose` は `--log-level=ALL` と同等であり、`--silent` は `--log-level=OFF`と同等であることに注意してください。このため、この例ではログレベルを一般的に設定しています: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L129-L130" >}} -**Note**: Java also allows setting log level by System Property:\ -Property key: `ChromeDriverService.CHROME_DRIVER_LOG_LEVEL_PROPERTY`\ -Property value: String representation of `ChromiumDriverLogLevel` enum +**注意**: Javaでは、システムプロパティによってログレベルを設定することもできます:\ +プロパティキー: `ChromeDriverService.CHROME_DRIVER_LOG_LEVEL_PROPERTY`\ +プロパティ値: `ChromiumDriverLogLevel` 列挙型の文字列表現 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -297,21 +288,20 @@ Property value: String representation of `ChromiumDriverLogLevel` enum {{< /tab >}} {{< /tabpane >}} -### Log file features -There are 2 features that are only available when logging to a file: -* append log -* readable timestamps +### ログファイル機能 +ファイルにログを記録する際にのみ利用できる2つの機能があります: +* ログの追加 +* 読みやすいタイムスタンプ -To use them, you need to also explicitly specify the log path and log level. -The log output will be managed by the driver, not the process, so minor differences may be seen. +これらを使用するには、ログパスとログレベルも明示的に指定する必要があります。ログ出力はプロセスではなくドライバーによって管理されるため、若干の違いが見られる場合があります。 {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L147-L148" >}} -**Note**: Java also allows toggling these features by System Property:\ -Property keys: `ChromeDriverService.CHROME_DRIVER_APPEND_LOG_PROPERTY` and `ChromeDriverService.CHROME_DRIVER_READABLE_TIMESTAMP`\ -Property value: `"true"` or `"false"` +**注意**: Javaでは、これらの機能をシステムプロパティによって切り替えることもできます:\ +プロパティキー: `ChromeDriverService.CHROME_DRIVER_APPEND_LOG_PROPERTY` および`ChromeDriverService.CHROME_DRIVER_READABLE_TIMESTAMP`\ +プロパティ値: `"true"` または `"false"` {{% /tab %}} {{< tab header="Python" >}} {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L104" >}} @@ -331,19 +321,17 @@ Property value: `"true"` or `"false"` {{< /tab >}} {{< /tabpane >}} -### Disabling build check +### ビルドチェックの無効化 -Chromedriver and Chrome browser versions should match, and if they don't the driver will error. -If you disable the build check, you can force the driver to be used with any version of Chrome. -Note that this is an unsupported feature, and bugs will not be investigated. +ChromedriverとChromeブラウザのバージョンは一致する必要があり、一致しない場合、ドライバーはエラーを返します。ビルドチェックを無効にすると、任意のバージョンのChromeでドライバーを強制的に使用できます。ただし、これはサポートされていない機能であり、バグは調査されません。 {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/ChromeTest.java#L166-L167" >}} -**Note**: Java also allows disabling build checks by System Property:\ -Property key: `ChromeDriverService.CHROME_DRIVER_DISABLE_BUILD_CHECK`\ -Property value: `"true"` or `"false"` +**注意**: Javaでは、システムプロパティによってビルドチェックを無効にすることもできます:\ +プロパティキー: `ChromeDriverService.CHROME_DRIVER_DISABLE_BUILD_CHECK`\ +プロパティ値: `"true"` または `"false"` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -365,11 +353,13 @@ Property value: `"true"` or `"false"` {{< /tabpane >}} -## Special Features +## 特別な機能 + +一部のブラウザは、それぞれに特有の追加機能を実装しています。 ### キャスティング -タブの共有など、Chrome Castデバイスを操作できます。 +Chrome Castデバイスを操作することができ、タブの共有も含まれます。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -396,9 +386,7 @@ Property value: `"true"` or `"false"` さまざまなネットワークの状態をシミュレートできます。 -The following examples are for local webdrivers. For remote webdrivers, -please refer to the -[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}}) page. +以下の例はローカルWebDriver用です。リモートWebDriverについては、[リモートWebDriver]({{< ref "../drivers/remote_webdriver" >}})ページを参照してください。 {{< tabpane text=true >}} {{< tab header="Java" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md b/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md index 6a3afad92c2d..fb462010145c 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.ja.md @@ -13,10 +13,9 @@ Chromeと同様に、edgedriverのメジャー バージョン番号は、Edge ## オプション -Capabilities common to all browsers are described on the [Options page]({{< ref "../drivers/options.md" >}}). +すべてのブラウザに共通する機能は[オプション ページ]({{< ref "../drivers/options.md" >}})に記載されています。 -Capabilities unique to Chromium are documented at Google's page for -[Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities) +Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https://chromedriver.chromium.org/capabilities)ページに文書化されています。 基本的な定義済みオプションを使用して Edgeセッションを開始すると、次のようになります。 @@ -43,10 +42,9 @@ Capabilities unique to Chromium are documented at Google's page for ### 引数 -The `args` parameter is for a list of command line switches to be used when starting the browser. -There are two excellent resources for investigating these arguments: -* [Chrome Flags for Tooling](https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md) -* [List of Chromium Command Line Switches](https://peter.sh/experiments/chromium-command-line-switches/) +`args` パラメータは、ブラウザを起動する際に使用されるコマンドラインスイッチのリストです。これらの引数を調査するための優れたリソースが2つあります: +* [ツール用のChromeフラグ](https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md) +* [Chromiumコマンドラインスイッチのリスト](https://peter.sh/experiments/chromium-command-line-switches/) 一般的に使用される引数には、`--start-maximized` および `--headless=new` が含まれます。 and `--user-data-dir=...` @@ -73,12 +71,11 @@ There are two excellent resources for investigating these arguments: {{< /tab >}} {{< /tabpane >}} -### Start browser in a specified location +### 指定された場所でブラウザを起動する -The `binary` parameter takes the path of an alternate location of browser to use. With this parameter you can -use chromedriver to drive various Chromium based browsers. +`binary` パラメータは、使用するブラウザの代替位置のパスを指定します。このパラメータを使用すると、chromedriverを利用してさまざまなChromiumベースのブラウザを操作できます。 -Add a browser location to options: +オプションにブラウザの場所を追加する: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -101,13 +98,11 @@ Add a browser location to options: {{< /tab >}} {{< /tabpane >}} -### Add extensions +### 拡張機能を追加する -The `extensions` parameter accepts crx files. As for unpacked directories, -please use the `load-extension` argument instead, as mentioned in -[this post](https://chromedriver.chromium.org/extensions). +`extensions` パラメータは、crxファイルを受け入れます。展開されたディレクトリについては、`load-extension` 引数を使用してください。このことは[この投稿](https://chromedriver.chromium.org/extensions)で言及されています。 -Add an extension to options: +オプションに拡張機能を追加する: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -130,20 +125,19 @@ Add an extension to options: {{< /tab >}} {{< /tabpane >}} -### Keeping browser open +### ブラウザを開いたままにする -Setting the `detach` parameter to true will keep the browser open after the process has ended, -so long as the quit command is not sent to the driver. +`detach` パラメータをtrue に設定すると、プロセスが終了した後でもブラウザが開いたままになります。ただし、quit コマンドがドライバーに送信されない限り、ブラウザは開いたままになります。 {{< tabpane text=true >}} {{% tab header="Java" %}} -**Note**: This is already the default behavior in Java. +**注意**: これはすでにJavaのデフォルトの動作です。 {{% /tab %}} {{% tab header="Python" %}} {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L51" >}} {{% /tab %}} {{% tab header="CSharp" %}} -**Note**: This is already the default behavior in .NET. +**注意**: これはすでに.NETのデフォルトの動作です。 {{% /tab %}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L45" >}} @@ -156,15 +150,11 @@ so long as the quit command is not sent to the driver. {{< /tab >}} {{< /tabpane >}} -### Excluding arguments +### 引数を除外する -MSEdgedriver has several default arguments it uses to start the browser. -If you do not want those arguments added, pass them into `excludeSwitches`. -A common example is to turn the popup blocker back on. A full list of default arguments -can be parsed from the -[Chromium Source Code](https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc) +MSEdgedriverには、ブラウザを起動するために使用されるいくつかのデフォルト引数があります。それらの引数を追加したくない場合は、`excludeSwitches`に渡してください。一般的な例は、ポップアップブロッカーを再度オンにすることです。デフォルト引数の完全なリストは[Chromium Source Code](https://source.chromium.org/chromium/chromium/src/+/main:chrome/test/chromedriver/chrome_launcher.cc)から解析できます。 -Set excluded arguments on options: +オプションに除外された引数を設定する: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -188,27 +178,25 @@ Set excluded arguments on options: {{< /tabpane >}} -## Service +## サービス -Examples for creating a default Service object, and for setting driver location and port -can be found on the [Driver Service]({{< ref "../drivers/service.md" >}}) page. +デフォルトのサービスオブジェクトを作成するための例や、ドライバの場所とポートを設定する例は、[Driver Service]({{< ref "../drivers/service.md" >}}) ページにあります。 -### Log output +### ログ出力 -Getting driver logs can be helpful for debugging issues. The Service class lets you -direct where the logs will go. Logging output is ignored unless the user directs it somewhere. +ドライバのログを取得することは、問題をデバッグするのに役立ちます。サービスクラスを使用すると、ログの出力先を指定できます。ユーザーがどこかにログを指示しない限り、ログ出力は無視されます。 -#### File output +#### ファイル出力 -To change the logging output to save to a specific file: +特定のファイルに保存するようにログ出力を変更するには、以下のようにします: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}} -**Note**: Java also allows setting file output by System Property:\ -Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ -Property value: String representing path to log file +**注意**: Javaでもシステムプロパティを使用してファイル出力を設定できます:\ +プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ +プロパティ値: ログファイルのパスを表す文字列 {{% /tab %}} {{< tab header="Python" >}} {{< gh-codeblock path="examples/python/tests/browsers/test_edge.py#L71" >}} @@ -228,17 +216,17 @@ Property value: String representing path to log file {{< /tab >}} {{< /tabpane >}} -#### Console output +#### コンソール出力 -To change the logging output to display in the console as STDOUT: +ログ出力をコンソールにSTDOUTとして表示するには: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}} -**Note**: Java also allows setting console output by System Property;\ -Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ -Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` +**注**: Javaでは、システムプロパティを使用してコンソール出力を設定することもできます。\ +プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\ +プロパティ値:`DriverService.LOG_STDOUT` または `DriverService.LOG_STDERR` {{% /tab %}} {{< tab header="Python" >}} {{< badge-implementation >}} @@ -247,7 +235,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< badge-implementation >}} {{< /tab >}} {{% tab header="Ruby" %}} -`$stdout` and `$stderr` are both valid values +`$stdout` と `$stderr`はどちらも有効な値です。 {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/ruby/spec/browsers/edge_spec.rb#L76" >}} {{% /tab %}} @@ -259,18 +247,16 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< /tab >}} {{< /tabpane >}} -### Log level -There are 6 available log levels: `ALL`, `DEBUG`, `INFO`, `WARNING`, `SEVERE`, and `OFF`. -Note that `--verbose` is equivalent to `--log-level=ALL` and `--silent` is equivalent to `--log-level=OFF`, -so this example is just setting the log level generically: +### ログレベル +利用可能なログレベルは6つあります:`ALL`, `DEBUG`, `INFO`, `WARNING`, `SEVERE`および `OFF`。`--verbose` は `--log-level=ALL` と同等であり、`--silent` は`--log-level=OFF`と同等です。したがって、この例ではログレベルを一般的に設定しています: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}} -**Note**: Java also allows setting log level by System Property:\ -Property key: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\ -Property value: String representation of `ChromiumDriverLogLevel` enum +**注意**: Javaでは、システムプロパティを使用してログレベルを設定することもできます:\ +プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\ +プロパティ値:`ChromiumDriverLogLevel` 列挙型の文字列表現 {{% /tab %}} {{< tab header="Python" >}} {{< gh-codeblock path="examples/python/tests/browsers/test_edge.py#L93" >}} @@ -290,21 +276,20 @@ Property value: String representation of `ChromiumDriverLogLevel` enum {{< /tab >}} {{< /tabpane >}} -### Log file features -There are 2 features that are only available when logging to a file: -* append log -* readable timestamps +### ログファイルの機能 +ファイルにログを記録する際にのみ利用可能な2つの機能があります: +* ログの追加 +* 読みやすいタイムスタンプ -To use them, you need to also explicitly specify the log path and log level. -The log output will be managed by the driver, not the process, so minor differences may be seen. +これらを使用するには、ログパスとログレベルも明示的に指定する必要があります。ログ出力はプロセスではなくドライバによって管理されるため、若干の違いが見られることがあります。 {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}} -**Note**: Java also allows toggling these features by System Property:\ -Property keys: `EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` and `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\ -Property value: `"true"` or `"false"` +**注意**: Javaでは、これらの機能をSystem Propertyによって切り替えることもできます:\ +プロパティキー:`EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` および `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\ +プロパティ値: `"true"` または `"false"` {{% /tab %}} {{< tab header="Python" >}} {{< gh-codeblock path="examples/python/tests/browsers/test_edge.py#L104" >}} @@ -324,19 +309,18 @@ Property value: `"true"` or `"false"` {{< /tab >}} {{< /tabpane >}} -### Disabling build check +### ビルドチェックの無効化 -Edge browser and msedgedriver versions should match, and if they don't the driver will error. -If you disable the build check, you can force the driver to be used with any version of Edge. -Note that this is an unsupported feature, and bugs will not be investigated. +Edge ブラウザとmsedgedriverのバージョンは一致する必要があり、一致しない場合はドライバにエラーが表示されます。ビルドチェックを無効にすると、任意のバージョンのEdgeでドライバを強制的に使用できます。 +この機能はサポートされていないことに注意してください。バグは調査されません。 {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.8" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}} -**Note**: Java also allows disabling build checks by System Property:\ -Property key: `EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\ -Property value: `"true"` or `"false"` +**注**: Javaでは、システムプロパティを使用してビルドチェックを無効にすることもできます:\ +プロパティキー:`EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\ +プロパティ値: `"true"` または `"false"` {{% /tab %}} {{< tab header="Python" >}} {{< gh-codeblock path="examples/python/tests/browsers/test_edge.py#L115" >}} @@ -364,12 +348,12 @@ Microsoft Edge は、Internet Explorer ドライバークラスを Microsoft Edg 詳細については、[Internet Explorerページ]({{< ref "internet_explorer.md" >}})を参照してください。 -## Special Features -Some browsers have implemented additional features that are unique to them. +## 特別な機能 +一部のブラウザは、それぞれ特有の追加機能を実装しています。 -### Casting +### キャスティング -You can drive Chrome Cast devices with Edge, including sharing tabs +Edge を使用して Chrome Cast デバイスを操作し、タブを共有することができます。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -392,9 +376,9 @@ You can drive Chrome Cast devices with Edge, including sharing tabs {{< /tab >}} {{< /tabpane >}} -### Network conditions +### ネットワーク条件 -You can simulate various network conditions. +さまざまなネットワーク条件をシミュレートすることができます。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -417,7 +401,7 @@ You can simulate various network conditions. {{< /tab >}} {{< /tabpane >}} -### Logs +### ログ {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -440,7 +424,7 @@ You can simulate various network conditions. {{< /tab >}} {{< /tabpane >}} -### Permissions +### 権限 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -465,4 +449,4 @@ You can simulate various network conditions. ### DevTools -See the [Chrome DevTools] section for more information about using DevTools in Edge +EdgeでDevToolsを使用する際の詳細については、[Chrome DevTools]セクションを参照してください。 \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md b/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md index 6c04bb4b2aa1..9932d9fa801a 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/firefox.ja.md @@ -1,9 +1,9 @@ --- -title: "Firefox 固有のCapability" +title: "Firefox特有の機能" linkTitle: "Firefox" weight: 6 description: >- - Mozilla Firefox ブラウザーに固有のCapabilityです。 + これらは、Mozilla Firefoxブラウザに特有の機能と機能です。 aliases: [ "/ja/documentation/capabilities/firefox" ] @@ -150,25 +150,24 @@ driver = RemoteWebDriver(options) -## Service +## サービス -Service settings common to all browsers are described on the [Service page]({{< ref "../drivers/service.md" >}}). +すべてのブラウザに共通するサービス設定は、[Service page]({{< ref "../drivers/service.md" >}})に記載されています。 -### Log output +### ログ出力 -Getting driver logs can be helpful for debugging various issues. The Service class lets you -direct where the logs will go. Logging output is ignored unless the user directs it somewhere. +ドライバーログを取得することは、さまざまな問題のデバッグに役立ちます。サービスクラスを使用すると、ログの保存先を指定できます。ログ出力は、ユーザーがどこかに指定しない限り無視されます。 -#### File output +#### ファイル出力 -To change the logging output to save to a specific file: +特定のファイルにログ出力を保存するには: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L62-L63" >}} -**Note**: Java also allows setting file output by System Property:\ -Property key: `GeckoDriverService.GECKO_DRIVER_LOG_PROPERTY`\ -Property value: String representing path to log file +**注**: Java では、システムプロパティによってファイル出力を設定することもできます。\ +プロパティキー:`GeckoDriverService.GECKO_DRIVER_LOG_PROPERTY`\ +プロパティ値: ログファイルへのパスを表す文字列 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -189,17 +188,17 @@ Property value: String representing path to log file {{< /tab >}} {{< /tabpane >}} -#### Console output +#### コンソール出力 -To change the logging output to display in the console: +ログ出力をコンソールに表示するには、以下のようにします: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L76-L77" >}} -**Note**: Java also allows setting console output by System Property;\ -Property key: `GeckoDriverService.GECKO_DRIVER_LOG_PROPERTY`\ -Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` +**注意**: Javaは、システムプロパティを使用してコンソール出力を設定することもできます;\ +プロパティキー: `GeckoDriverService.GECKO_DRIVER_LOG_PROPERTY`\ +プロパティ値: `DriverService.LOG_STDOUT` または `DriverService.LOG_STDERR` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -220,20 +219,20 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< /tab >}} {{< /tabpane >}} -### Log level -There are 7 available log levels: `fatal`, `error`, `warn`, `info`, `config`, `debug`, `trace`. -If logging is specified the level defaults to `info`. +### ログレベル +利用可能なログレベルは7つあります: `fatal`, `error`, `warn`, `info`, `config`, `debug`, `trace`。 +ロギングが指定されている場合、デフォルトのレベルは `info`になります。 -Note that `-v` is equivalent to `-log debug` and `-vv` is equivalent to `log trace`, -so this examples is just for setting the log level generically: +`-v` iは `-log debug` と同等であり、`-vv` は `log trace`と同等です。 +したがって、この例は一般的にログレベルを設定するためのものです: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L90-L91" >}} -**Note**: Java also allows setting log level by System Property:\ -Property key: `GeckoDriverService.GECKO_DRIVER_LOG_LEVEL_PROPERTY`\ -Property value: String representation of `FirefoxDriverLogLevel` enum +**注意**: Javaは、システムプロパティによってログレベルの設定も可能です:\ +プロパティキー: `GeckoDriverService.GECKO_DRIVER_LOG_LEVEL_PROPERTY`\ +プロパティ値:`FirefoxDriverLogLevel`列挙型の文字列表現 {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -254,18 +253,17 @@ Property value: String representation of `FirefoxDriverLogLevel` enum {{< /tab >}} {{< /tabpane >}} -### Truncated Logs +### トランケートログ -The driver logs everything that gets sent to it, including string representations of large binaries, so -Firefox truncates lines by default. To turn off truncation: +ドライバーは、大きなバイナリの文字列表現を含む、送信されたすべてのものをログに記録します。そのため、Firefoxではデフォルトで行が切り捨てられます。切り捨てを無効にするには: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L106-L107" >}} -**Note**: Java also allows setting log level by System Property:\ -Property key: `GeckoDriverService.GECKO_DRIVER_LOG_NO_TRUNCATE`\ -Property value: `"true"` or `"false"` +**注意**: Javaでは、システムプロパティによってログレベルを設定することもできます。\ +プロパティキー: `GeckoDriverService.GECKO_DRIVER_LOG_NO_TRUNCATE`\ +プロパティ値: `"true"` または `"false"` {{% /tab %}} {{< tab header="Python" >}} {{< badge-version version="4.11" >}} @@ -286,18 +284,17 @@ Property value: `"true"` or `"false"` {{< /tab >}} {{< /tabpane >}} -### Profile Root +### プロファイルルート -The default directory for profiles is the system temporary directory. If you do not have access to that directory, -or want profiles to be created some place specific, you can change the profile root directory: +プロファイルのデフォルトディレクトリは、システムの一時ディレクトリです。そのディレクトリにアクセスできない場合や、特定の場所にプロファイルを作成したい場合は、プロファイルルートディレクトリを変更できます: {{< tabpane text=true >}} {{% tab header="Java" %}} {{< badge-version version="4.10" >}} {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java#L118-L119" >}} -**Note**: Java also allows setting log level by System Property:\ -Property key: `GeckoDriverService.GECKO_DRIVER_PROFILE_ROOT`\ -Property value: String representing path to profile root directory +**注意**: Javaでは、システムプロパティを使用してログレベルを設定することもできます: \ +プロパティキー: `GeckoDriverService.GECKO_DRIVER_PROFILE_ROOT`\ +プロパティ値: プロファイルルートディレクトリへのパスを表す文字列 {{% /tab %}} {{< tab header="Python" >}} {{< gh-codeblock path="examples/python/tests/browsers/test_firefox.py#L81" >}} @@ -318,19 +315,15 @@ Property value: String representing path to profile root directory {{< /tabpane >}} -## Special Features +## 特別な機能 ### アドオン Chromeとは異なり、Firefoxの拡張機能はCapabilityの一部として追加されるのではなく、ドライバーの起動後に作成されます。 -Unlike Chrome, Firefox extensions are not added as part of capabilities as mentioned in -[this issue](https://github.com/mozilla/geckodriver/issues/1476), -they are created after starting the driver. +Chromeとは異なり、Firefoxの拡張機能は[この問題](https://github.com/mozilla/geckodriver/issues/1476)に記載されているように、機能の一部として追加されるのではなく、ドライバーの起動後に作成されます。 -The following examples are for local webdrivers. For remote webdrivers, -please refer to the -[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}}) page. +T以下の例はローカルWebDriver用です。リモートWebDriverについては、[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}})ページを参照してください。 #### インストール @@ -415,9 +408,7 @@ IDはアドオンインストール時の戻り値から取得できます。 ### ページ全体のスクリーンショット -The following examples are for local webdrivers. For remote webdrivers, -please refer to the -[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}}) page. +以下の例はローカルWebDriver用です。リモートWebDriverについては、[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}})ページを参照してください。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -442,9 +433,7 @@ please refer to the ### コンテキスト -The following examples are for local webdrivers. For remote webdrivers, -please refer to the -[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}}) page. +以下の例はローカルWebDriver用です。リモートWebDriverについては、[Remote WebDriver]({{< ref "../drivers/remote_webdriver" >}})ページを参照してください。 {{< tabpane text=true >}} {{< tab header="Java" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md index 7beae548b86e..f70ca13ed7ad 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md @@ -1,9 +1,9 @@ --- -title: "IE specific functionality" +title: "IE特有の機能" linkTitle: "Internet Explorer" weight: 8 description: >- - These are capabilities and features specific to Microsoft Internet Explorer browsers. + これらは、Microsoft Internet Explorerブラウザに特有の機能と機能です。 aliases: [ "/ja/documentation/capabilities/internet_explorer" ] diff --git a/website_and_docs/content/documentation/webdriver/browsers/safari.ja.md b/website_and_docs/content/documentation/webdriver/browsers/safari.ja.md index 4f19d559e64f..0542996104e0 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/safari.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/safari.ja.md @@ -1,9 +1,9 @@ --- -title: "Safari specific functionality" +title: "Safari特有の機能" linkTitle: "Safari" weight: 10 description: >- - These are capabilities and features specific to Apple Safari browsers. + これらは、Apple Safariブラウザに特有の機能と機能です。 aliases: [ "/ja/documentation/capabilities/safari" ] diff --git a/website_and_docs/content/documentation/webdriver/drivers/http_client.ja.md b/website_and_docs/content/documentation/webdriver/drivers/http_client.ja.md index ce95a52a78c9..165e79efa0bc 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/http_client.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/http_client.ja.md @@ -1,10 +1,10 @@ --- -title: "HTTP Client Configuration" -linkTitle: "HTTP Client" +title: "HTTPクライアントの設定" +linkTitle: "HTTPクライアント" weight: 3 --- -These allow you to set various parameters for the HTTP library +これにより、HTTPライブラリのさまざまなパラメーターを設定できます。 {{< tabpane text=true >}} {{< tab header="Java" >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md index 90d657ccc802..a46cf6bacc84 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/options.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/options.ja.md @@ -3,7 +3,7 @@ title: "ブラウザーオプション" linkTitle: "オプション" weight: 2 description: >- - これらのCapabilityはすべてのブラウザで共通です。 + これらの機能はすべてのブラウザで共有されています。 aliases: [ "/documentation/ja/driver_idiosyncrasies/shared_capabilities/", "/ja/documentation/webdriver/capabilities/shared_capabilities/", @@ -27,7 +27,7 @@ Selenium 4 以降、ブラウザ オプション クラスを使用する必要 ## browserName -Browser name is set by default when using an Options class instance. +オプションクラスのインスタンスを使用すると、ブラウザ名はデフォルトで設定されます。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -53,9 +53,7 @@ Browser name is set by default when using an Options class instance. ## browserVersion -This capability is optional, this is used to set the available browser version at remote end. -In recent versions of Selenium, if the version is not found on the system, -it will be automatically downloaded by [Selenium Manager]({{< ref "../../selenium_manager" >}}) +この機能はオプションであり、リモート側で使用可能なブラウザのバージョンを設定するために使用されます。最近のSeleniumのバージョンでは、システムにバージョンが見つからない場合、[Selenium Manager]({{< ref "../../selenium_manager" >}}) によって自動的にダウンロードされます。 {{< tabpane text=true >}} {{< tab header="Java" >}} diff --git a/website_and_docs/content/documentation/webdriver/drivers/remote_webdriver.ja.md b/website_and_docs/content/documentation/webdriver/drivers/remote_webdriver.ja.md index 6d1355a2e53e..728356042f49 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/remote_webdriver.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/remote_webdriver.ja.md @@ -1,6 +1,6 @@ --- -title: "Remote WebDriver" -linkTitle: "Remote WebDriver" +title: "リモートWebDriver" +linkTitle: "リモートWebDriver" weight: 10 aliases: [ "/documentation/ja/remote_webdriver/", @@ -10,18 +10,11 @@ aliases: [ --- -Selenium lets you automate browsers on remote computers if -there is a [Selenium Grid]({{< ref "../../grid" >}}) running on them. The computer that -executes the code is referred to as the client computer, and the computer with the browser and driver is -referred to as the remote computer or sometimes as an end-node. -To direct Selenium tests to the remote computer, you need to use a Remote WebDriver class -and pass the URL including the port of the grid on that machine. Please see the grid documentation -for all the various ways the grid can be configured. +Seleniumは、リモートコンピュータ上でブラウザを自動化することができます。これには、リモートコンピュータ上で [Selenium Grid]({{< ref "../../grid" >}}) が実行されている必要があります。コードを実行するコンピュータはクライアントコンピュータと呼ばれ、ブラウザとドライバーがあるコンピュータはリモートコンピュータまたは時々エンドノードと呼ばれます。Seleniumテストをリモートコンピュータに向けるには、Remote WebDriverクラスを使用し、そのマシンのグリッドのポートを含むURLを渡す必要があります。グリッドの設定方法については、グリッドのドキュメントを参照してください。 -## Basic Example +## 基本的な例 -The driver needs to know where to send commands to and which browser to start on the Remote computer. So an address -and an options instance are both required. +ドライバーは、コマンドを送信する場所と、リモートコンピュータ上で開始するブラウザを知る必要があります。そのため、アドレスとオプションインスタンスの両方が必要です。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -45,31 +38,25 @@ and an options instance are both required. {{< /tabpane >}} -## Uploads +## アップロード -[Uploading a file]() is more complicated for Remote WebDriver sessions because the file you want to -upload is likely on the computer executing the code, but the driver on the -remote computer is looking for the provided path on its local file system. -The solution is to use a Local File Detector. When one is set, Selenium will bundle -the file, and send it to the remote machine, so the driver can see the reference to it. -Some bindings include a basic local file detector by default, and all of them allow -for a custom file detector. +[ファイルのアップロード]() は、リモートWebDriverセッションではより複雑です。アップロードしたいファイルはコードを実行しているコンピュータ上にあることが多いですが、リモートコンピュータ上のドライバーはそのローカルファイルシステム上で指定されたパスを探しています。この解決策として、ローカルファイルディテクターを使用します。これを設定すると、Seleniumはファイルをパッケージ化し、リモートマシンに送信するため、ドライバーはその参照を認識できるようになります。一部のバインディングでは、デフォルトで基本的なローカルファイルディテクターが含まれており、すべてのバインディングでカスタムファイルディテクターを設定できます。 {{< tabpane text=true >}} {{< tab header="Java" >}} -Java does not include a Local File Detector by default, so you must always add one to do uploads. +Javaにはデフォルトでローカルファイルディテクターが含まれていないため、アップロードを行う際には必ず追加する必要があります。 {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/RemoteWebDriverTest.java#L49-L52" >}} {{< /tab >}} {{% tab header="Python" %}} -Python adds a local file detector to remote webdriver instances by default, but you can also create your own class. +Pythonでは、リモートWebDriverインスタンスにデフォルトでローカルファイルディテクターが追加されますが、独自のクラスを作成することも可能です。 {{< gh-codeblock path="examples/python/tests/drivers/test_remote_webdriver.py#LL29-L32" >}} {{% /tab %}} {{< tab header="CSharp" >}} -.NET adds a local file detector to remote webdriver instances by default, but you can also create your own class. +.NETでは、リモートWebDriverインスタンスにデフォルトでローカルファイルディテクターが追加されますが、独自のクラスを作成することも可能です。 {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/RemoteWebDriverTest.cs#L47-L50" >}} {{< /tab >}} {{< tab header="Ruby" >}} -Ruby adds a local file detector to remote webdriver instances by default, but you can also create your own lambda: +Rubyでは、リモートWebDriverインスタンスにデフォルトでローカルファイルディテクターが追加されますが、独自のラムダを作成することも可能です。 {{< gh-codeblock path="examples/ruby/spec/drivers/remote_webdriver_spec.rb#L33-L36" >}} {{< /tab >}} {{< tab header="JavaScript" >}} @@ -81,24 +68,20 @@ Ruby adds a local file detector to remote webdriver instances by default, but yo {{< /tabpane >}} -## Downloads +## ダウンロード -Chrome, Edge and Firefox each allow you to set the location of the download directory. -When you do this on a remote computer, though, the location is on the remote computer's local file system. -Selenium allows you to enable downloads to get these files onto the client computer. +Chrome、Edge、およびFirefoxでは、それぞれダウンロードディレクトリの場所を設定できます。 ただし、リモートコンピュータでこれを行う場合、その場所はリモートコンピュータのローカルファイルシステム上にあります。Seleniumを使用すると、クライアントコンピュータにこれらのファイルをダウンロードできるように設定することが可能です。 -### Enable Downloads in the Grid +### グリッドでのダウンロードを有効化 -Regardless of the client, when starting the grid in node or standalone mode, -you must add the flag: +クライアントに関係なく、ノードまたはスタンドアロンモードでグリッドを起動する際には、次のフラグを追加する必要があります: ``` --enable-managed-downloads true ``` -### Enable Downloads in the Client +### クライアントでのダウンロードを有効化 -The grid uses the `se:downloadsEnabled` capability to toggle whether to be responsible for managing the browser location. -Each of the bindings have a method in the options class to set this. +グリッドは、`se:downloadsEnabled` 機能を使用して、ブラウザの場所を管理する責任を持つかどうかを切り替えます。各バインディングには、これを設定するためのオプションクラスのメソッドがあります。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -121,10 +104,9 @@ Each of the bindings have a method in the options class to set this. {{< /tab >}} {{< /tabpane >}} -### List Downloadable Files +### ダウンロード可能なファイルの一覧 -Be aware that Selenium is not waiting for files to finish downloading, -so the list is an immediate snapshot of what file names are currently in the directory for the given session. +Seleniumはファイルのダウンロードが完了するのを待たないため、リストは指定されたセッションのディレクトリに現在存在するファイル名の即時スナップショットであることに注意してください。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -147,9 +129,9 @@ so the list is an immediate snapshot of what file names are currently in the dir {{< /tab >}} {{< /tabpane >}} -### Download a File +### ファイルをダウンロード -Selenium looks for the name of the provided file in the list and downloads it to the provided target directory. +Seleniumは、提供されたファイルの名前をリストの中で探し、指定されたターゲットディレクトリにダウンロードします。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -172,10 +154,9 @@ Selenium looks for the name of the provided file in the list and downloads it to {{< /tab >}} {{< /tabpane >}} -### Delete Downloaded Files +### ダウンロードしたファイルの削除 -By default, the download directory is deleted at the end of the applicable session, -but you can also delete all files during the session. +デフォルトでは、ダウンロードディレクトリは該当するセッションの終了時に削除されますが、セッション中にすべてのファイルを削除することもできます。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -199,19 +180,16 @@ but you can also delete all files during the session. {{< /tabpane >}} -## Browser specific functionalities +## ブラウザ特有の機能 -Each [browser]({{< ref "../browsers/" >}}) has implemented special functionality that is available only to that browser. -Each of the Selenium bindings has implemented a different way to use those features in a Remote Session +各 [ブラウザ]({{< ref "../browsers/" >}}) は、そのブラウザにのみ利用可能な特別な機能を実装しています。各Seleniumバインディングは、リモートセッションでそれらの機能を使用するための異なる方法を実装しています。 {{< tabpane text=true >}} {{% tab header="Java" %}} -Java requires you to use the Augmenter class, which allows it to automatically pull in implementations for -all interfaces that match the capabilities used with the RemoteWebDriver +Javaでは、Augmenterクラスを使用する必要があります。これにより、RemoteWebDriverで使用される機能に一致するすべてのインターフェースの実装を自動的に取り込むことができます。 {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/RemoteWebDriverTest.java#L98" >}} -Of interest, using the `RemoteWebDriverBuilder` automatically augments the driver, so it is a great way -to get all the functionality by default: +興味深いことに、RemoteWebDriverBuilderを使用すると、ドライバーが自動的に拡張されるため、デフォルトで全ての機能を取得するのに最適な方法です。 {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/RemoteWebDriverTest.java#L106-L111" >}} {{% /tab %}} @@ -219,12 +197,12 @@ to get all the functionality by default: {{< badge-implementation >}} {{% /tab %}} {{< tab header="CSharp" >}} -.NET uses a custom command executor for executing commands that are valid for the given browser in the remote driver. + +.NETでは、リモートドライバーで指定されたブラウザに対して有効なコマンドを実行するために、カスタムコマンドエグゼキュータを使用します。 {{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/RemoteWebDriverTest.cs#L96-L100" >}} {{< /tab >}} {{< tab header="Ruby" >}} -Ruby uses mixins to add applicable browser specific methods to the Remote WebDriver session; -the methods should always just work for you. +Rubyでは、ミキシンを使用してリモートWebDriverセッションに適用可能なブラウザ特有のメソッドを追加します。これらのメソッドは常にそのまま機能するはずです。 {{< /tab >}} {{< tab header="JavaScript" >}} {{< badge-code >}} @@ -290,7 +268,7 @@ driver.quit(); 詳細については、下記URLを参照してください。 * OpenTelemetry: https://opentelemetry.io -* Configuring OpenTelemetry: +* OpenTelemetryの構成:: https://github.com/open-telemetry/opentelemetry-java/tree/main/sdk-extensions/autoconfigure * Jaeger: https://www.jaegertracing.io * [Selenium Grid 可観測性]({{< ref "observability.md" >}}) diff --git a/website_and_docs/content/documentation/webdriver/drivers/service.ja.md b/website_and_docs/content/documentation/webdriver/drivers/service.ja.md index 0d5844d709a4..7071298fb0d5 100644 --- a/website_and_docs/content/documentation/webdriver/drivers/service.ja.md +++ b/website_and_docs/content/documentation/webdriver/drivers/service.ja.md @@ -1,20 +1,16 @@ --- -title: "Driver Service Class" -linkTitle: "Service" +title: "ドライバーサービスクラス" +linkTitle: "サービス" weight: 3 --- -The Service classes are for managing the starting and stopping of drivers. -They can not be used with a Remote WebDriver session. +サービスクラスは、ドライバーの起動と停止を管理するためのものです。リモートWebDriverセッションでは使用できません。 -Service classes allow you to specify information about the driver, -like location and which port to use. -They also let you specify what arguments get passed -to the command line. Most of the useful arguments are related to logging. +サービスクラスを使用すると、ドライバーに関する情報(場所や使用するポートなど)を指定できます。また、コマンドラインに渡される引数を指定することもできます。便利な引数のほとんどは、ログに関連しています。 -## Default Service instance +## デフォルトサービスインスタンス -To start a driver with a default service instance: +デフォルトサービスインスタンスを使用してドライバーを起動するには: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -38,10 +34,9 @@ To start a driver with a default service instance: {{< /tab >}} {{< /tabpane >}} -## Driver location +## ドライバーの場所 -**Note:** If you are using Selenium 4.6 or greater, you shouldn't need to set a driver location. -If you can not update Selenium or have an advanced use case here is how to specify the driver location: +**注意:** Selenium 4.6以上を使用している場合、ドライバーの場所を設定する必要はありません。Seleniumを更新できない場合や、特別な使用ケースがある場合は、ドライバーの場所を指定する方法は次のとおりです: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -67,9 +62,9 @@ If you can not update Selenium or have an advanced use case here is how to speci {{< /tab >}} {{< /tabpane >}} -## Driver port +## ドライバーのポート -If you want the driver to run on a specific port, you may specify it as follows: +ドライバーを特定のポートで実行したい場合は、次のように指定できます: {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -95,10 +90,9 @@ If you want the driver to run on a specific port, you may specify it as follows: {{< /tabpane >}} -## Logging +## ログ記録 -Logging functionality varies between browsers. Most browsers allow you to -specify location and level of logs. Take a look at the respective browser page: +ログ記録機能はブラウザによって異なります。ほとんどのブラウザでは、ログの場所とレベルを指定できます。各ブラウザのページを確認してください: * [Chrome]({{< ref "../browsers/chrome#service" >}}) * [Edge]({{< ref "../browsers/edge#service" >}}) * [Firefox]({{< ref "../browsers/firefox#service" >}}) diff --git a/website_and_docs/content/documentation/webdriver/getting_started/_index.ja.md b/website_and_docs/content/documentation/webdriver/getting_started/_index.ja.md index 303cb061c67a..4874ab8c2d5e 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/_index.ja.md @@ -24,15 +24,14 @@ Seleniumは可能な場合これらのサードパーティ製のdriverを使い Seleniumフレームワークはこれら全ての要素をユーザ向けのインターフェイスを通して結びつけます。このインターフェイスは異なるブラウザバックエンドを透過的に使えるようにし、クロスブラウザ・クロスプラットフォームの自動化を可能にします。 -Selenium setup is quite different from the setup of other commercial tools. -Before you can start writing Selenium code, you have to -install the language bindings libraries for your language of choice, the browser you -want to use, and the driver for that browser. +Seleniumのセットアップは、他の商用ツールのセットアップとはかなり異なります。 +Seleniumコードの記述を開始する前に、次のことを行う必要があります +選択した言語、つまりブラウザーの言語バインディングライブラリをインストールします +使用したい、そのブラウザのドライバ。 -***Follow the links below to get up and going with Selenium WebDriver.*** +***以下のリンクをたどって、Selenium WebDriverを起動してください。*** -If you wish to start with a low-code/record and playback tool, please check +ローコード/録音および再生ツールから始めたい場合は、確認してください [Selenium IDE](https://selenium.dev/selenium-ide) -Once you get things working, if you want to scale up your tests, check out the -[Selenium Grid]({{< ref "/documentation/grid" >}}). +物事がうまくいったら、テストをスケールアップしたい場合は、[Selenium Grid]({{< ref "/documentation/grid" >}}). diff --git a/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md b/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md index 433ccdeb787d..483c398cc0c1 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/first_script.ja.md @@ -10,16 +10,16 @@ description: > [Seleniumをインストール]({{< ref "install_library.md" >}})し、 すると、Seleniumコードを書く準備が整います。 -## Eight Basic Components +## 8つの基本コンポーネント Seleniumが行うことはすべて、ブラウザコマンドを送信して、何かを実行したり、情報の要求を送信したりすることです。 Seleniumで行うことのほとんどは、次の基本的なコマンドの組み合わせです。 -Click on the link to "View full example on GitHub" to see the code in context. +[GitHub で完全な例を表示] へのリンクをクリックして、コンテキスト内のコードを表示します。 ### 1. ドライバーインスタンスでセッションを開始します -For more details on starting a session read our documentation on [driver sessions]({{< ref "../drivers/" >}}) +セッションの開始の詳細については、次のドキュメントをお読みください [driver sessions]({{< ref "../drivers/" >}}) {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -43,7 +43,7 @@ For more details on starting a session read our documentation on [driver sessio {{< /tabpane >}} ### 2. Take action on browser -In this example we are ブラウザが[ナビゲート]({{< ref "/documentation/webdriver/interactions/navigation.md" >}})するコマンドを送信します +こちらの例では、[ナビゲート]({{< ref "/documentation/webdriver/interactions/navigation.md" >}}) してウェブページに移動しています。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -68,8 +68,7 @@ In this example we are ブラウザが[ナビゲート]({{< ref "/documentation/ ### 3. [ブラウザに関する情報]({{< ref "/documentation/webdriver/interactions" >}})をリクエストします -There are a bunch of types of [information about the browser]({{< ref "/documentation/webdriver/interactions" >}}) you -can request, including window handles, browser size / position, cookies, alerts, etc. +ブラウザに関する [情報]({{< ref "/documentation/webdriver/interactions" >}}) として、ウィンドウハンドル、ブラウザのサイズ/位置、クッキー、アラートなど、さまざまな種類のデータをリクエストできます。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -92,18 +91,18 @@ can request, including window handles, browser size / position, cookies, alerts, {{< /tab >}} {{< /tabpane >}} -### 4. Establish Waiting Strategy +### 4. 待機戦略の確立 -Synchronizing the code with the current state of the browser is one of the biggest challenges -with Selenium, and doing it well is an advanced topic. +コードをブラウザの現在の状態と同期させることは、最大の課題の 1 つです +Seleniumを使用して、それをうまく行うことは高度なトピックです。 -Essentially you want to make sure that the element is on the page before you attempt to locate it -and the element is in an interactable state before you attempt to interact with it. +基本的には、要素を見つける前に、その要素がページ上にあることを確認する必要があります +また、要素は、操作を試みる前に対話可能な状態にあります。 -An implicit wait is rarely the best solution, but it's the easiest to demonstrate here, so -we'll use it as a placeholder. +暗黙的な待機が最善の解決策になることはめったにありませんが、ここで示すのが最も簡単なので、 +プレースホルダーとして使用します。 -Read more about [Waiting strategies]({{< ref "/documentation/webdriver/waits.md" >}}). +[待機戦略] についてさらに読む({{< ref "/documentation/webdriver/waits.md" >}}). {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -127,8 +126,7 @@ Read more about [Waiting strategies]({{< ref "/documentation/webdriver/waits.md" {{< /tabpane >}} ### 5. [要素を検索する]({{< ref "/documentation/webdriver/elements" >}})ためのコマンドを送信します -The majority of commands in most Selenium sessions are element related, and you can't interact -with one without first [finding an element]({{< ref "/documentation/webdriver/elements" >}}) +ほとんどのSeleniumセッションにおけるコマンドの大部分は要素に関連しており、[要素を見つける]({{< ref "/documentation/webdriver/elements" >}}) ことなしにはそれと対話することができません。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -152,8 +150,8 @@ with one without first [finding an element]({{< ref "/documentation/webdriver/el {{< /tabpane >}} ### 6. 要素に対してアクションを実行する -There are only a handful of [actions to take on an element]({{< ref "/documentation/webdriver/elements/interactions.md" >}}), -but you will use them frequently. + +要素に対して行う [アクション]({{< ref "/documentation/webdriver/elements/interactions.md" >}})はわずかしかありませんが、それらは頻繁に使用されます。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -177,7 +175,8 @@ but you will use them frequently. {{< /tabpane >}} ### 7. 要素に関する情報をリクエストします -Elements store a lot of [information that can be requested]({{< ref "/documentation/webdriver/elements/information" >}}). + +要素には [リクエスト可能な情報]({{< ref "/documentation/webdriver/elements/information" >}}) が多く保存されています。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -202,10 +201,9 @@ Elements store a lot of [information that can be requested]({{< ref "/documentat ### 8. セッションを終了します -This ends the driver process, which by default closes the browser as well. -No more commands can be sent to this driver instance. +これにより、ドライバー プロセスが終了し、既定ではブラウザーも閉じます。このドライバー インスタンスにこれ以上コマンドを送信することはできません。 -See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). +[セッションの終了]({{< ref "../drivers/#quitting-sessions" >}}) を参照. {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -229,7 +227,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< /tabpane >}} -## Running Selenium File +## Seleniumファイルの実行 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -253,8 +251,7 @@ See [Quitting Sessions]({{< ref "../drivers/#quitting-sessions" >}}). {{< /tabpane >}} -## Next Steps +## 次のステップ + -Most Selenium users execute many sessions and need to organize them to minimize duplication and keep the code -more maintainable. Read on to learn about how to put this code into context for your use case with -[Using Selenium]({{< ref "using_selenium.md" >}}). +ほとんどのSeleniumユーザーは多くのセッションを実行し、重複を最小限に抑え、コードをより保守しやすくするために整理する必要があります。このコードをユースケースのコンテキストに配置する方法については、以下をお読みください [Seleniumの使用]({{< ref "using_selenium.md" >}})。 diff --git a/website_and_docs/content/documentation/webdriver/getting_started/install_library.ja.md b/website_and_docs/content/documentation/webdriver/getting_started/install_library.ja.md index c18aa137fcab..cc266706a996 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/install_library.ja.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/install_library.ja.md @@ -14,30 +14,29 @@ aliases: [ 最初にあなたの自動化プロジェクトにSeleniumのバインディングをインストールする必要があります。 インストールの方法は選択した言語によって異なります。 -## Requirements by language +## 言語別の要件 {{< tabpane text=true >}} {{% tab header="Java" %}} -View the minimum supported Java version [here](https://github.com/SeleniumHQ/selenium/blob/trunk/.bazelrc#L13). +サポートされている最小のJavaバージョンを表示する [ここ](https://github.com/SeleniumHQ/selenium/blob/trunk/.bazelrc#L13). -Installation of Selenium libraries for Java is accomplished using a build tool. +Java用のSeleniumライブラリのインストールは、ビルドツールを使用して行います。 ### Maven -Specify the dependencies in the project's `pom.xml` file: +プロジェクトの 'pom.xml' ファイルで依存関係を指定します: {{< gh-codeblock path="examples/java/pom.xml#L30-L34" >}} ### Gradle -Specify the dependency in the project `build.gradle` file as `testImplementation`: +プロジェクトの 'build.gradle' ファイル内の依存関係を 'testImplementation' として指定します: {{< gh-codeblock path="examples/java/build.gradle#L13-L14" >}} {{% /tab %}} {{% tab header="Python" %}} -The minimum supported Python version for each Selenium version can be found -in `Supported Python Versions` on [PyPi](https://pypi.org/project/selenium/) +各 Selenium バージョンでサポートされている最小 Python バージョンについては、次の場所にあります `サポートされている Python バージョン` オン [PyPi](https://pypi.org/project/selenium/)。 -There are a couple different ways to install Selenium. +Seleniumをインストールするには、いくつかの方法があります。 ### Pip @@ -46,29 +45,29 @@ pip install selenium ```
-### Download +### ダウンロード -Alternatively you can download the [PyPI source archive](https://pypi.org/project/selenium/#files) -(selenium-x.x.x.tar.gz) and install it using _setup.py_: +または、ダウンロードすることもできます[PyPI ソースアーカイブ](https://pypi.org/project/selenium/#files) +(selenium-x.x.x.tar.gz) を使用してインストールします _setup.py_ ```shell python setup.py install ```
-### Require in project +### プロジェクトで必要 -To use it in a project, add it to the `requirements.txt` file: +プロジェクトで使用するには、requirements.txt ファイルに追加します: {{< gh-codeblock path="examples/python/requirements.txt#L1" >}} {{% /tab %}} {{% tab header="CSharp" %}} -A list of all supported frameworks for each version of Selenium -is available on [Nuget](https://www.nuget.org/packages/Selenium.WebDriver) +Seleniumの各バージョンでサポートされているすべてのフレームワークのリスト +で利用可能です[Nuget](https://www.nuget.org/packages/Selenium.WebDriver) -There are a few options for installing Selenium. +Seleniumのインストールにはいくつかのオプションがあります。 -### Packet Manager +### パケットマネージャー ```shell Install-Package Selenium.WebDriver @@ -84,22 +83,21 @@ dotnet add package Selenium.WebDriver ### CSProj -in the project's `csproj` file, specify the dependency as a `PackageReference` in `ItemGroup`: +プロジェクトの `csproj`ファイルで、`ItemGroup` の `PackageReference`として依存関係を指定します。: {{< gh-codeblock language="xml" path="examples/dotnet/SeleniumDocs/SeleniumDocs.csproj#L14" >}} -### Additional considerations +### その他の考慮事項 -Further items of note for using Visual Studio Code (vscode) and C# +その他、使用上の注意点 Visual Studio Code (vscode) そして C# -Install the compatible .NET SDK as per the section above. -Also install the vscode extensions (Ctrl-Shift-X) for C# and NuGet. -Follow the [instruction here](https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code?pivots=dotnet-5-0) -to create and run the "Hello World" console project using C#. -You may also create a NUnit starter project using the command line `dotnet new NUnit`. -Make sure the file `%appdata%\NuGet\nuget.config` is configured properly as some developers reported that it will be empty due to some issues. -If `nuget.config` is empty, or not configured properly, then .NET builds will fail for Selenium Projects. -Add the following section to the file `nuget.config` if it is empty: +上記のセクションに従って、互換性のある .NET SDK をインストールします。 +また、C# と NuGet の vscode 拡張機能 (Ctrl-Shift-X) もインストールします。に従ってください[指示はこちら](https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code?pivots=dotnet-5-0) +C# を使用して "Hello World" コンソール プロジェクトを作成および実行します。 +コマンドラインを使用してNUnitスタータープロジェクトを作成することもできます `dotnet new NUnit`. +ファイルを確認してください `%appdata%\NuGet\nuget.config`一部の開発者がいくつかの問題のために空になると報告したため、適切に構成されています。 +もし`nuget.config`が空であるか、正しく構成されていない場合、Selenium プロジェクトの .NET ビルドは失敗します。 +次のセクションをファイルに追加します`nuget.config` 空の場合: ``` @@ -108,56 +106,55 @@ Add the following section to the file `nuget.config` if it is empty: ... ``` -For more info about `nuget.config` [click here](https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file). -You may have to customize `nuget.config` to meet you needs. +詳細については、`nuget.config` [ここをクリック](https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file). +カスタマイズする必要があるかもしれません `nuget.config` あなたのニーズを満たすために。 -Now, go back to vscode, press Ctrl-Shift-P, and type "NuGet Add Package", and enter the required Selenium packages such as `Selenium.WebDriver`. -Press Enter and select the version. -Now you can use the examples in the documentation related to C# with vscode. +さて、戻ってください vscode、プレス Ctrl-Shift-P、およびタイプ "NuGet Add Package"をクリックし、必要な Selenium パッケージ `Selenium.WebDriver`. +Enter キーを押して、バージョンを選択します。 +これで、C# と vscode に関連するドキュメントの例を使用できるようになりました。 {{% /tab %}} {{% tab header="Ruby" %}} -You can see the minimum required version of Ruby for any given Selenium version -on [rubygems.org](https://rubygems.org/gems/selenium-webdriver/) +特定の Selenium バージョンに対して最低限必要な Ruby のバージョンを確認できます +オン [rubygems.org](https://rubygems.org/gems/selenium-webdriver/) -Selenium can be installed two different ways. +Seleniumは2つの異なる方法でインストールできます。 -### Install manually +### 手動でインストールする ```shell gem install selenium-webdriver ```
-### Add to project's gemfile +### プロジェクトの gemfile に追加 {{< gh-codeblock language="ruby" path="examples/ruby/Gemfile#L10" >}} {{% /tab %}} {{% tab header="JavaScript" %}} -You can find the minimum required version of Node for any given version of Selenium in the -`Node Support Policy` section on [npmjs](https://www.npmjs.com/package/selenium-webdriver) +Seleniumの特定のバージョンに最低限必要なNodeのバージョンは、`Node Support Policy` 節 オン [npmjs](https://www.npmjs.com/package/selenium-webdriver) -Selenium is typically installed using npm. +Seleniumは通常、npmを使用してインストールされます。 -### Install locally +### ローカルにインストールする ```shell npm install selenium-webdriver ```
-### Add to project +### プロジェクトに加える -In your project's `package.json`, add requirement to `dependencies`: +プロジェクトの `package.json`で、要件を `dependencies`: {{< gh-codeblock path="examples/javascript/package.json#L14" >}} {{% /tab %}} {{< tab header="Kotlin" >}} - Use the Java bindings for Kotlin. + Kotlin の Java バインディングを使用します。 {{< /tab >}} {{< /tabpane >}} -## Next Step -[Create your first Selenium script]({{< ref "first_script.md" >}}) +## 次のステップ +[初めてのSeleniumスクリプトを作成する]({{< ref "first_script.md" >}}) diff --git a/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.ja.md b/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.ja.md index 9c3ff5504c5c..a715033acb2a 100644 --- a/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.ja.md +++ b/website_and_docs/content/documentation/webdriver/getting_started/using_selenium.ja.md @@ -1,42 +1,38 @@ --- -title: "Organizing and Executing Selenium Code" -linkTitle: "Using Selenium" +title: "Seleniumコードの整理と実行" +linkTitle: "Seleniumの使用" weight: 10 description: > - Scaling Selenium execution with an IDE and a Test Runner library + IDEとテストランナーライブラリを使用したSelenium実行のスケーリング --- -If you want to run more than a handful of one-off scripts, you need to -be able to organize and work with your code. This page should give you -ideas for how to actually do productive things with your Selenium code. +一握り以上の 1 回限りのスクリプトを実行する場合は、コードを整理して操作できる必要があります。このページでは、Seleniumコードを使用して実際に生産的なことを行う方法についてのアイデアを提供します。 -## Common Uses +## 一般的な用途 -Most people use Selenium to execute automated tests for web applications, -but Selenium support any use case of browser automation. +ほとんどの人はSeleniumを使用してWebアプリケーションの自動テストを実行します。 +しかし、Seleniumはブラウザ自動化のあらゆるユースケースをサポートします。 -### Repetitive Tasks +### 反復タスク -Perhaps you need to log into a website and download something, or submit a form. -You can create a Selenium script to run with a service at preset times. +おそらく、Webサイトにログインして何かをダウンロードするか、フォームを送信する必要があります。 +Selenium スクリプトを作成して、あらかじめ設定された時間にサービスと共に実行できます。 -### Web Scraping +### Webスクレイピング -Are you looking to collect data from a site that doesn't have an API? Selenium -will let you do this, but please make sure you are familiar with the website's -terms of service as some websites do not permit it and others will even block Selenium. +APIがないサイトからデータを収集したいとお考えですか?セレン +これを行うことができますが、Webサイトに精通していることを確認してください。 +一部のWebサイトでは許可されておらず、他のWebサイトではSeleniumがブロックされることさえあります。 -### Testing +### テスティング -Running Selenium for testing requires making assertions on actions taken by Selenium. -So a good assertion library is required. Additional features to provide structure for tests -require use of [Test Runner](#test-runners). +テストのためにSeleniumを実行するには、Seleniumが実行したアクションに対してアサーションを行う必要があります。 +したがって、優れたアサーションライブラリが必要です。テストの構造を提供する追加機能 +使用する必要があります [Test Runner](#test-runners). ## IDEs -Regardless of how you use Selenium code, -you won't be very effective writing or executing it without a good -Integrated Developer Environment. Here are some common options... +Seleniumコードの使用方法に関係なく、優れた統合開発環境がなければ、Seleniumコードの作成や実行はあまり効果的ではありません。一般的なオプションを次に示します... - [Eclipse](https://www.eclipse.org/) - [IntelliJ IDEA](https://www.jetbrains.com/idea/) @@ -48,48 +44,46 @@ Integrated Developer Environment. Here are some common options... ## Test Runner -Even if you aren't using Selenium for testing, if you have advanced use cases, it might make -sense to use a test runner to better organize your code. Being able to use before/after hooks -and run things in groups or in parallel can be very useful. +テストにSeleniumを使用していない場合でも、高度なユースケースがある場合は、テストランナーを使用してコードをより適切に整理するのが理にかなっている場合があります。before/after フックを使用して、グループまたは並行して物事を実行できると非常に便利です。 -### Choosing +### 卜 -There are many different test runners available. +さまざまなテストランナーが利用可能です。 -All the code examples in this documentation can be found in (or is being moved to) our -example directories that use test runners and get executed every release to ensure all the code is correct and updated. -Here is a list of test runners with links. The first item is the one that is used by this repository and the one -that will be used for all examples on this page. +このドキュメントのすべてのコード例は、 +テストランナーを使用し、すべてのコードが正しく更新されていることを確認するためにリリースごとに実行されるディレクトリの例。 +リンク付きのテストランナーのリストを次に示します。最初の項目は、このリポジトリで使用される項目と +このページのすべての例で使用されます。 {{< tabpane text=true >}} {{% tab header="Java" %}} -- [JUnit](https://junit.org/junit5/) - A widely-used testing framework for Java-based Selenium tests. -- [TestNG](https://testng.org/) - Offers extra features like parallel test execution and parameterized tests. +- [JUnit](https://junit.org/junit5/) - JavaベースのSeleniumテストで広く使用されているテストフレームワーク。 +- [TestNG](https://testng.org/) - 並列テスト実行やパラメーター化されたテストなどの追加機能を提供します。 {{% /tab %}} {{% tab header="Python" %}} -- [pytest](https://pytest.org/) - A preferred choice for many, thanks to its simplicity and powerful plugins. -- [unittest](https://docs.python.org/3/library/unittest.html) - Python's standard library testing framework. +- [pytest](https://pytest.org/) - そのシンプルさと強力なプラグインのおかげで、多くの人に好まれる選択肢です。 +- [unittest](https://docs.python.org/3/library/unittest.html) - Python の標準ライブラリテストフレームワーク。 {{% /tab %}} {{% tab header="CSharp" %}} -- [NUnit](https://nunit.org/) - A popular unit-testing framework for .NET. -- [MS Test](https://docs.microsoft.com/en-us/visualstudio/test/getting-started-with-unit-testing?view=vs-2019) - Microsoft's own unit testing framework. +- [NUnit](https://nunit.org/) - .NET の一般的な単体テスト フレームワーク。 +- [MS Test](https://docs.microsoft.com/en-us/visualstudio/test/getting-started-with-unit-testing?view=vs-2019) - Microsoft 独自の単体テスト フレームワーク。 {{% /tab %}} {{% tab header="Ruby" %}} -- [RSpec](https://rspec.info/) - The most widely used testing library for running Selenium tests in Ruby. -- [Minitest](https://github.com/seattlerb/minitest) - A lightweight testing framework that comes with Ruby standard library. +- [RSpec](https://rspec.info/) - RubyでSeleniumテストを実行するために最も広く使用されているテストライブラリ。 +- [Minitest](https://github.com/seattlerb/minitest) - Ruby標準ライブラリに付属する軽量なテストフレームワークです。 {{% /tab %}} {{% tab header="JavaScript" %}} -- [Jest](https://jestjs.io/) - Primarily known as a testing framework for React, it can also be used for Selenium tests. -- [Mocha](https://mochajs.org/) - The most common JS library for running Selenium tests. +- [Jest](https://jestjs.io/) - 主にReactのテストフレームワークとして知られていますが、Seleniumのテストにも使用できます。 +- [Mocha](https://mochajs.org/) - Seleniumテストを実行するための最も一般的なJSライブラリ。 {{% /tab %}} {{% tab header="Kotlin" %}} @@ -97,10 +91,9 @@ that will be used for all examples on this page. {{% /tab %}} {{< /tabpane >}} -### Installing +### 装着 -This is very similar to what was required in [Install a Selenium Library]({{< ref "install_library.md" >}}). -This code is only showing examples for what is being used in our Documentation Examples project. +これは、で必要とされたものと非常によく似ています [Seleniumライブラリのインストール]({{< ref "install_library.md" >}})。このコードは、私たちのドキュメント例プロジェクトで使用されているものの例を示しているだけです。 {{< tabpane text=true >}} {{% tab header="Java" %}} @@ -112,27 +105,27 @@ This code is only showing examples for what is being used in our Documentation E {{% /tab %}} {{% tab header="Python" %}} -To use it in a project, add it to the `requirements.txt` file: +プロジェクトで使用するには、requirements.txt ファイルに追加します: {{% /tab %}} {{% tab header="CSharp" %}} -in the project's `csproj` file, specify the dependency as a `PackageReference` in `ItemGroup`: +プロジェクトの 'csproj' ファイルで、依存関係を 'ItemGroup' の 'PackageReference' として指定します: {{% /tab %}} {{% tab header="Ruby" %}} -Add to project's gemfile +プロジェクトの gemfile に追加 {{% /tab %}} {{% tab header="JavaScript" %}} -In your project's `package.json`, add requirement to `dependencies`: +プロジェクトの 'package.json' で、要件を 'dependencies' に追加します。: {{% /tab %}} {{< tab header="Kotlin" >}} {{< /tab >}} {{< /tabpane >}} -### Asserting +### 主張 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -155,27 +148,27 @@ In your project's `package.json`, add requirement to `dependencies`: {{< /tab >}} {{< /tabpane >}} -### Setting Up and Tearing Down +### セットアップとティアダウン {{< tabpane text=true >}} {{% tab header="Java" %}} -### Set Up +### 並べる {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/UsingSeleniumTest.java#L19-L22" >}} -### Tear Down +### 取り壊す {{< gh-codeblock path="examples/java/src/test/java/dev/selenium/getting_started/UsingSeleniumTest.java#L45-L48" >}} {{% /tab %}} {{% tab header="Python" %}} -### Set Up +### 並べる {{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L25-L28" >}} -### Tear Down +### 取り壊す {{< gh-codeblock path="examples/python/tests/getting_started/using_selenium_tests.py#L30-31" >}} @@ -185,21 +178,21 @@ In your project's `package.json`, add requirement to `dependencies`: {{< /tab >}} {{% tab header="Ruby" %}} -### Set Up +### 並べる {{< gh-codeblock path="examples/ruby/spec/getting_started/using_selenium_spec.rb#L7-L9" >}} -### Tear Down +### 取り壊す {{< gh-codeblock path="examples/ruby/spec/spec_helper.rb#L28" >}} {{% /tab %}} {{< tab header="JavaScript" >}} -### Set Up +### 並べる {{< gh-codeblock path="examples/javascript/test/getting_started/runningTests.spec.js#L7-L9" >}} -### Tear Down +### 取り壊す {{< gh-codeblock path="examples/javascript/test/getting_started/runningTests.spec.js#L30" >}} {{< /tab >}} @@ -208,7 +201,7 @@ In your project's `package.json`, add requirement to `dependencies`: {{< /tab >}} {{< /tabpane >}} -### Executing +### 実行 {{< tabpane text=true >}} {{% tab header="Java" %}} @@ -255,10 +248,9 @@ npx mocha runningTests.spec.js {{< /tab >}} {{< /tabpane >}} -### Examples +### 例 -In [First script]({{< ref "first_script.md" >}}), we saw each of the components of a Selenium script. -Here's an example of that code using a test runner: +[最初のスクリプト]({{< ref "first_script.md" >}})のトピックでは、Seleniumスクリプトの各コンポーネントを見ました。こちらが、テストランナーを使用したそのコードの例です。 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -281,9 +273,9 @@ Here's an example of that code using a test runner: {{< /tab >}} {{< /tabpane >}} -## Next Steps +## 次のステップ -Take what you've learned and build out your Selenium code! +学んだことを活かして、Seleniumコードを構築します! -As you find more functionality that you need, read up on the rest of our -[WebDriver documentation]({{< ref "/documentation/webdriver/" >}}). +必要な機能が他にも見つかったら、残りの機能をお読みください +[WebDriver ドキュメント]({{< ref "/documentation/webdriver/" >}}). diff --git a/website_and_docs/content/documentation/webdriver/interactions/_index.ja.md b/website_and_docs/content/documentation/webdriver/interactions/_index.ja.md index 14afe513e041..f800ac19ca76 100644 --- a/website_and_docs/content/documentation/webdriver/interactions/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/interactions/_index.ja.md @@ -1,5 +1,5 @@ --- -title: "Browser interactions" +title: "ブラウザのインタラクション" linkTitle: "Interactions" weight: 10 aliases: [ diff --git a/website_and_docs/content/documentation/webdriver/support_features/_index.ja.md b/website_and_docs/content/documentation/webdriver/support_features/_index.ja.md index 34943b8ff25a..739935402ecc 100644 --- a/website_and_docs/content/documentation/webdriver/support_features/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/support_features/_index.ja.md @@ -1,9 +1,9 @@ --- -title: "Support features" -linkTitle: "Support Features" +title: "サポート機能" +linkTitle: "サポート機能" weight: 18 description: > - Support classes provide optional higher level features. + サポート クラスは、オプションの上位レベル機能を提供します。 aliases: [ "/documentation/ja/support_packages/", "/ja/documentation/support_packages/", diff --git a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md index 7963e483b58e..250c55519b42 100644 --- a/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md +++ b/website_and_docs/content/documentation/webdriver/troubleshooting/_index.ja.md @@ -1,9 +1,9 @@ --- -title: "Troubleshooting Assistance" +title: "トラブルシューティングの支援" linkTitle: "Troubleshooting" weight: 20 description: > - How to get manage WebDriver problems. + WebDriverの問題を管理する方法。 --- It is not always obvious the root cause of errors in Selenium.