|
1 | 1 | ---
|
2 |
| -title: "Shared capabilities" |
| 2 | +title: "共有機能" |
3 | 3 | weight: 1
|
4 | 4 | ---
|
5 | 5 |
|
6 |
| -{{% notice info %}} |
7 |
| -<i class="fas fa-language"></i> ページは英語から日本語へ訳されています。 |
8 |
| -日本語は話せますか?プルリクエストをして翻訳を手伝ってください! |
9 |
| -{{% /notice %}} |
10 | 6 |
|
11 |
| -### pageLoadStrategy |
12 |
| -When navigating to a new page via URL, by default Selenium will wait |
13 |
| -until the page has fully loaded before responding. This works well for |
14 |
| -beginners, but can cause long wait times on pages that load a large |
15 |
| -number of third party resources. Using a non default strategy can make |
16 |
| -test execution faster in cases like this, but can also introduce flakiness |
17 |
| -where elements on the page change position as elements load in and change |
18 |
| -size. |
| 7 | +### ページロード戦略 |
| 8 | +URLを介して新しいページに移動する場合、デフォルトでは、Seleniumは応答する前にページが完全にロードされるまで待機します。 |
| 9 | +これは初心者には効果的ですが、多数のサードパーティリソースをロードするページで長い待ち時間を引き起こす可能性があります。 |
| 10 | +デフォルト以外の戦略を使用すると、このような場合にテストの実行を高速化できますが、ページの要素がロードされてサイズが変更されると、ページ上の要素の位置が変化する不安定さを引き起こします。 |
19 | 11 |
|
20 |
| -The page load strategy queries the |
21 |
| -[document.readyState](//developer.mozilla.org/en-US/docs/Web/API/Document/readyState) |
22 |
| -as described in the table below: |
| 12 | +次の表で説明するように、ページロード戦略は [document.readyState](//developer.mozilla.org/en-US/docs/Web/API/Document/readyState) を問い合わせます。 |
23 | 13 |
|
24 |
| -| Strategy | Ready State | Notes | |
| 14 | +| 戦略 | Ready State | 注釈 | |
25 | 15 | | -------- | ----------- | ----- |
|
26 |
| -| normal | complete | Used by default, waits for all resources to download | |
27 |
| -| eager | interactive | DOM access is ready, but other resources like images may still be loading | |
28 |
| -| none | Any | Does not block WebDriver at all | |
| 16 | +| normal | complete | デフォルトで使用され、すべてのリソースがダウンロードされるまで待機します | |
| 17 | +| eager | interactive | DOMアクセスの準備はできていますが、画像などの他のリソースがまだ読み込まれている可能性があります | |
| 18 | +| none | Any | WebDriverをまったくブロックしません | |
0 commit comments