1
1
---
2
- title : " Firefox specific functionality "
2
+ title : " Firefox 固有のCapability "
3
3
linkTitle : " Firefox"
4
4
weight : 6
5
5
description : >-
6
- These are capabilities and features specific to Mozilla Firefox browsers.
6
+ Mozilla Firefox ブラウザーに固有のCapabilityです。
7
7
aliases : [
8
8
" /ja/documentation/capabilities/firefox"
9
9
]
10
10
---
11
11
12
- Selenium 4 requires Firefox 78 or greater. It is recommended to always use the latest version of geckodriver.
12
+ Selenium 4 には Firefox 78 以降が必要です。
13
+ 常に最新バージョンの geckodriver を使用することをお勧めします。
13
14
14
- ## Options
15
+ ## オプション
15
16
16
- Capabilities common to all browsers are described on the [ Options page ] ({{< ref "../drivers/options.md" >}}).
17
+ 全ブラウザに共通のCapabilityについては、 [ オプションページ ] ({{< ref "../drivers/options.md" >}})で説明しています。
17
18
18
- Capabilities unique to Firefox can be found at Mozilla's page for [ firefoxOptions] ( https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions )
19
+ Firefox に固有のCapabilityは、 Mozilla のページの [ firefoxOptions] ( https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions ) にあります。
19
20
20
- Starting a Firefox session with basic defined options looks like this:
21
+ 基本的な定義済みのオプションを使用して Firefox セッションを開始すると、以下のようになります。
21
22
22
23
{{< tabpane code=false langEqualsHeader=true >}}
23
24
{{< tab header="Java" >}}
@@ -40,14 +41,14 @@ Starting a Firefox session with basic defined options looks like this:
40
41
{{< /tab >}}
41
42
{{< /tabpane >}}
42
43
43
- Here are a few common use cases with different capabilities:
44
+ さまざまなCapabilityを備えた一般的な使用例をいくつか示します。
44
45
45
- ### Arguments
46
+ ### 引数
46
47
47
- The ` args ` parameter is for a list of Command line switches used when starting the browser.
48
- Commonly used args include ` -headless ` and ` "-profile", "/path/to/profile" `
48
+ ` args ` パラメータは、ブラウザの起動時に使用するコマンドラインスイッチのリストです。
49
+ 一般的に使用される引数には、 ` -headless ` と ` "-profile" ` 、 ` "/path/to/profile" ` が含まれます。
49
50
50
- Add an argument to options:
51
+ オプションに引数を追加します。
51
52
52
53
<div >
53
54
{{< tabpane langEqualsHeader=true >}}
@@ -59,18 +60,19 @@ options.add_argument("/path/to/profile")
59
60
{{< /tabpane >}}
60
61
</div >
61
62
62
- ### Start browser in a specified location
63
+ ### 指定したロケーションでブラウザを起動する
63
64
64
- The ` binary ` parameter takes the path of an alternate location of browser to use. For example, with this parameter you can
65
- use geckodriver to drive Firefox Nightly instead of the production version when both are present on your computer.
65
+ ` binary ` パラメーターは、使用するブラウザーの別のロケーションのパスを取ります。
66
+ たとえば、このパラメーターを使用すると、geckodriver を使用して、製品版とFirefox Nightlyの両方がコンピューターに存在する場合、
67
+ 製品版の代わりに Firefox Nightly を駆動できます 。
66
68
67
- Add a browser location to options:
69
+ オプションにブラウザーのロケーションを追加します。
68
70
69
71
{{< alert-code />}}
70
72
71
- ### Profiles
73
+ ### プロファイル
72
74
73
- There are several ways to work with Firefox profiles
75
+ Firefoxプロファイルを操作するにはいくつかの方法があります。
74
76
75
77
<div >
76
78
{{< tabpane langEqualsHeader=true >}}
@@ -120,13 +122,13 @@ driver = RemoteWebDriver(options)
120
122
{{< /tabpane >}}
121
123
</div >
122
124
123
- ## Add-ons
125
+ ## アドオン
124
126
125
- Unlike Chrome, Firefox extensions are not added as part of capabilities, they are created after starting the driver.
127
+ Chromeとは異なり、Firefoxの拡張機能はCapabilityの一部として追加されるのではなく、ドライバーの起動後に作成されます。
126
128
127
- ### Installation
129
+ ### インストール
128
130
129
- A signed xpi file you would get from [ Mozilla Addon page ] ( https://addons.mozilla.org/en-US /firefox/ )
131
+ [ Mozilla Add-Onsページ ] ( https://addons.mozilla.org/ja /firefox/ ) から取得する署名付きxpiファイル
130
132
131
133
{{< tabpane code=false langEqualsHeader=true >}}
132
134
{{< tab header="Java" >}}
@@ -149,9 +151,10 @@ A signed xpi file you would get from [Mozilla Addon page](https://addons.mozilla
149
151
{{< /tab >}}
150
152
{{< /tabpane >}}
151
153
152
- ### Uninstallation
154
+ ### アンインストール
153
155
154
- Uninstalling an addon requires knowing its id. The id can be obtained from the return value when installing the add-on.
156
+ アドオンをアンインストールするには、そのIDを知る必要があります。
157
+ IDはアドオンインストール時の戻り値から取得できます。
155
158
156
159
{{< tabpane code=false langEqualsHeader=true >}}
157
160
{{< tab header="Java" >}}
@@ -175,11 +178,11 @@ Uninstalling an addon requires knowing its id. The id can be obtained from the r
175
178
{{< /tab >}}
176
179
{{< /tabpane >}}
177
180
178
- ### Unsigned installation
181
+ ### 署名なしのインストール
179
182
180
- When working with an unfinished or unpublished extension, it will likely not be signed. As such, it can only
181
- be installed as "temporary." This can be done by passing in either a zip file or a directory, here's an
182
- example with a directory:
183
+ 未完成または未公開の拡張機能を使用する場合、署名されていない可能性があります。
184
+ そのため、"一時的なもの" としてのみインストールできます。
185
+ これは、zipファイルまたはディレクトリを渡すことで実行できます。ディレクトリの例を次に示します。
183
186
184
187
{{< tabpane code=false langEqualsHeader=true >}}
185
188
{{< tab header="Java" >}}
@@ -204,10 +207,10 @@ example with a directory:
204
207
{{< /tab >}}
205
208
{{< /tabpane >}}
206
209
207
- ## Full page screenshots
210
+ ## ページ全体のスクリーンショット
208
211
209
212
{{< alert-code />}}
210
213
211
- ## Context
214
+ ## コンテキスト
212
215
213
216
{{< alert-code />}}
0 commit comments