|
1 | 1 | ---
|
2 |
| -title: "Page loading strategy" |
| 2 | +title: "ページ読み込み戦略" |
3 | 3 | weight: 8
|
4 | 4 | ---
|
5 | 5 |
|
6 |
| -{{% notice info %}} |
7 |
| -<i class="fas fa-language"></i> ページは英語から日本語へ訳されています。 |
8 |
| -日本語は話せますか?プルリクエストをして翻訳を手伝ってください! |
9 |
| -{{% /notice %}} |
| 6 | +現在のセッションのページ読み込み戦略を定義します。 |
| 7 | +デフォルトでは、Selenium WebDriverがページを読み込む場合、 pageLoadStrategy は _normal_ となります。 |
| 8 | +ページの読み込みに時間がかかる場合は、追加のリソース(画像、CSS、JSなど)のダウンロードを停止することを常にお勧めします。 |
10 | 9 |
|
11 |
| -Defines the current session's page loading strategy. |
12 |
| -By default, when Selenium WebDriver loads a page, |
13 |
| -it follows the _normal_ pageLoadStrategy. |
14 |
| -It is always recommended to stop downloading additional |
15 |
| -resources (like images, css, js) when the page loading takes lot of time. |
16 |
| - |
17 |
| -WebDriver _pageLoadStrategy_ supports the following values: |
| 10 | +WebDriverの _pageLoadStrategy_ は以下の値をサポートします。 |
18 | 11 |
|
19 | 12 | ## normal
|
20 | 13 |
|
21 |
| -This will make Selenium WebDriver to wait for the entire page is loaded. |
22 |
| -When set to **normal**, Selenium WebDriver waits until the |
23 |
| -[load](https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event) event fire is returned. |
| 14 | +この値は、Selenium WebDriverはページ全体がロードされるまで待機します。 |
| 15 | +**normal** に設定すると、Selenium WebDriverは、[ロード](https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event)イベントの発生が返却されるまで待機します。 |
24 | 16 |
|
25 |
| -By default **normal** is set to browser if none is provided. |
| 17 | +何も指定されていない場合、デフォルトでは、 **normal** がブラウザに設定されます。 |
26 | 18 |
|
27 | 19 | {{< code-tab >}}
|
28 | 20 | {{< code-panel language="java" >}}
|
@@ -98,12 +90,9 @@ fun main() {
|
98 | 90 |
|
99 | 91 | ## eager
|
100 | 92 |
|
101 |
| -This will make Selenium WebDriver to wait until the |
102 |
| -initial HTML document has been completely loaded and parsed, |
103 |
| -and discards loading of stylesheets, images and subframes. |
| 93 | +この値は、Selenium WebDriverは最初のHTMLドキュメントが完全に読み込まれて解析されるまで待機し、スタイルシート、画像、およびサブフレームの読み込みを破棄します。 |
104 | 94 |
|
105 |
| -When set to **eager**, Selenium WebDriver waits until |
106 |
| -[DOMContentLoaded](https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event) event fire is returned. |
| 95 | +**eager** に設定すると、Selenium WebDriverは [DOMContentLoaded](https://developer.mozilla.org/en-US/docs/Web/API/Document/DOMContentLoaded_event) イベントの発生が返却されるまで待機します。 |
107 | 96 |
|
108 | 97 | {{< code-tab >}}
|
109 | 98 | {{< code-panel language="java" >}}
|
@@ -179,7 +168,7 @@ fun main() {
|
179 | 168 |
|
180 | 169 | ## none
|
181 | 170 |
|
182 |
| -When set to **none** Selenium WebDriver only waits until the initial page is downloaded. |
| 171 | +**none** に設定すると、Selenium WebDriverは最初のページがダウンロードされるまで待機します。 |
183 | 172 |
|
184 | 173 | {{< code-tab >}}
|
185 | 174 | {{< code-panel language="java" >}}
|
|
0 commit comments