Skip to content

Commit 66bd786

Browse files
Delta456harsha509
andauthored
[java] fix java code lines for edge (#2103)[deploy site]
Co-authored-by: Sri Harsha <[email protected]>
1 parent 6b3cccc commit 66bd786

File tree

4 files changed

+43
-43
lines changed

4 files changed

+43
-43
lines changed

website_and_docs/content/documentation/webdriver/browsers/edge.en.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Starting an Edge session with basic defined options looks like this:
2020

2121
{{< tabpane text=true >}}
2222
{{< tab header="Java" >}}
23-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L37-L38" >}}
23+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}}
2424
{{< /tab >}}
2525
{{% tab header="Python" %}}
2626
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}}
@@ -52,7 +52,7 @@ Add an argument to options:
5252

5353
{{< tabpane text=true >}}
5454
{{< tab header="Java" >}}
55-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L45" >}}
55+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L46" >}}
5656
{{< /tab >}}
5757
{{% tab header="Python" %}}
5858
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}}
@@ -80,7 +80,7 @@ Add a browser location to options:
8080

8181
{{< tabpane text=true >}}
8282
{{< tab header="Java" >}}
83-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L54" >}}
83+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L55" >}}
8484
{{< /tab >}}
8585
{{% tab header="Python" %}}
8686
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L29">}}
@@ -109,7 +109,7 @@ Add an extension to options:
109109

110110
{{< tabpane text=true >}}
111111
{{< tab header="Java" >}}
112-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L65" >}}
112+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L66" >}}
113113
{{< /tab >}}
114114
{{% tab header="Python" %}}
115115
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}}
@@ -166,7 +166,7 @@ Set excluded arguments on options:
166166

167167
{{< tabpane text=true >}}
168168
{{< tab header="Java" >}}
169-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L78" >}}
169+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L79" >}}
170170
{{< /tab >}}
171171
{{% tab header="Python" %}}
172172
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}}
@@ -203,7 +203,7 @@ To change the logging output to save to a specific file:
203203
{{< tabpane text=true >}}
204204
{{% tab header="Java" %}}
205205
{{< badge-version version="4.10" >}}
206-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}}
206+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L101" >}}
207207
**Note**: Java also allows setting file output by System Property:\
208208
Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\
209209
Property value: String representing path to log file
@@ -233,7 +233,7 @@ To change the logging output to display in the console as STDOUT:
233233
{{< tabpane text=true >}}
234234
{{% tab header="Java" %}}
235235
{{< badge-version version="4.10" >}}
236-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}}
236+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L114" >}}
237237
**Note**: Java also allows setting console output by System Property;\
238238
Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\
239239
Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
@@ -266,7 +266,7 @@ so this example is just setting the log level generically:
266266
{{< tabpane text=true >}}
267267
{{% tab header="Java" %}}
268268
{{< badge-version version="4.8" >}}
269-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}}
269+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L127-L128" >}}
270270
**Note**: Java also allows setting log level by System Property:\
271271
Property key: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\
272272
Property value: String representation of `ChromiumDriverLogLevel` enum
@@ -300,7 +300,7 @@ The log output will be managed by the driver, not the process, so minor differen
300300
{{< tabpane text=true >}}
301301
{{% tab header="Java" %}}
302302
{{< badge-version version="4.8" >}}
303-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}}
303+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L143-L144" >}}
304304
**Note**: Java also allows toggling these features by System Property:\
305305
Property keys: `EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` and `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\
306306
Property value: `"true"` or `"false"`
@@ -332,7 +332,7 @@ Note that this is an unsupported feature, and bugs will not be investigated.
332332
{{< tabpane text=true >}}
333333
{{% tab header="Java" %}}
334334
{{< badge-version version="4.8" >}}
335-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}}
335+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L161-L162" >}}
336336
**Note**: Java also allows disabling build checks by System Property:\
337337
Property key: `EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\
338338
Property value: `"true"` or `"false"`
@@ -443,7 +443,7 @@ You can simulate various network conditions.
443443

444444
{{< tabpane text=true >}}
445445
{{< tab header="Java" >}}
446-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L183" >}}
446+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L184" >}}
447447
{{< /tab >}}
448448
{{< tab header="Python" >}}
449449
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L149" >}}

website_and_docs/content/documentation/webdriver/browsers/edge.ja.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https://
2121

2222
{{< tabpane text=true >}}
2323
{{< tab header="Java" >}}
24-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L37-L38" >}}
24+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L38" >}}
2525
{{< /tab >}}
2626
{{% tab header="Python" %}}
2727
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}}
@@ -52,7 +52,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https://
5252

5353
{{< tabpane text=true >}}
5454
{{< tab header="Java" >}}
55-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L45" >}}
55+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L46" >}}
5656
{{< /tab >}}
5757
{{% tab header="Python" %}}
5858
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}}
@@ -79,7 +79,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https://
7979

8080
{{< tabpane text=true >}}
8181
{{< tab header="Java" >}}
82-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L54" >}}
82+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L55" >}}
8383
{{< /tab >}}
8484
{{% tab header="Python" %}}
8585
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L29">}}
@@ -106,7 +106,7 @@ Chromiumに特有の機能は、Googleの[Capabilities & ChromeOptions](https://
106106

107107
{{< tabpane text=true >}}
108108
{{< tab header="Java" >}}
109-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L65" >}}
109+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L66" >}}
110110
{{< /tab >}}
111111
{{% tab header="Python" %}}
112112
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}}
@@ -158,7 +158,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく
158158

159159
{{< tabpane text=true >}}
160160
{{< tab header="Java" >}}
161-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L78" >}}
161+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L79" >}}
162162
{{< /tab >}}
163163
{{% tab header="Python" %}}
164164
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}}
@@ -193,7 +193,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく
193193
{{< tabpane text=true >}}
194194
{{% tab header="Java" %}}
195195
{{< badge-version version="4.10" >}}
196-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}}
196+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L101" >}}
197197
**注意**: Javaでもシステムプロパティを使用してファイル出力を設定できます:\
198198
プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\
199199
プロパティ値: ログファイルのパスを表す文字列
@@ -223,7 +223,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく
223223
{{< tabpane text=true >}}
224224
{{% tab header="Java" %}}
225225
{{< badge-version version="4.10" >}}
226-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}}
226+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L114" >}}
227227
****: Javaでは、システムプロパティを使用してコンソール出力を設定することもできます。\
228228
プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\
229229
プロパティ値:`DriverService.LOG_STDOUT` または `DriverService.LOG_STDERR`
@@ -254,7 +254,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく
254254
{{< tabpane text=true >}}
255255
{{% tab header="Java" %}}
256256
{{< badge-version version="4.8" >}}
257-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}}
257+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L127-L128" >}}
258258
**注意**: Javaでは、システムプロパティを使用してログレベルを設定することもできます:\
259259
プロパティキー: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\
260260
プロパティ値:`ChromiumDriverLogLevel` 列挙型の文字列表現
@@ -287,7 +287,7 @@ MSEdgedriverには、ブラウザを起動するために使用されるいく
287287
{{< tabpane text=true >}}
288288
{{% tab header="Java" %}}
289289
{{< badge-version version="4.8" >}}
290-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}}
290+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L143-L144" >}}
291291
**注意**: Javaでは、これらの機能をSystem Propertyによって切り替えることもできます:\
292292
プロパティキー:`EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` および `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\
293293
プロパティ値: `"true"` または `"false"`
@@ -318,7 +318,7 @@ Edge ブラウザとmsedgedriverのバージョンは一致する必要があり
318318
{{< tabpane text=true >}}
319319
{{% tab header="Java" %}}
320320
{{< badge-version version="4.8" >}}
321-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}}
321+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L161-L162" >}}
322322
****: Javaでは、システムプロパティを使用してビルドチェックを無効にすることもできます:\
323323
プロパティキー:`EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\
324324
プロパティ値: `"true"` または `"false"`
@@ -429,7 +429,7 @@ Edge を使用して Chrome Cast デバイスを操作し、タブを共有す
429429

430430
{{< tabpane text=true >}}
431431
{{< tab header="Java" >}}
432-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L183" >}}
432+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L184" >}}
433433
{{< /tab >}}
434434
{{< tab header="Python" >}}
435435
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L149" >}}

website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Este é um exemplo de como iniciar uma sessão Edge com um conjunto de opções
2222

2323
{{< tabpane text=true >}}
2424
{{< tab header="Java" >}}
25-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L37-L38" >}}
25+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L38-L39" >}}
2626
{{< /tab >}}
2727
{{% tab header="Python" %}}
2828
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}}
@@ -54,7 +54,7 @@ Adicione uma opção:
5454

5555
{{< tabpane text=true >}}
5656
{{< tab header="Java" >}}
57-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L45" >}}
57+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L46" >}}
5858
{{< /tab >}}
5959
{{% tab header="Python" %}}
6060
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}}
@@ -111,7 +111,7 @@ Add an extension to options:
111111

112112
{{< tabpane text=true >}}
113113
{{< tab header="Java" >}}
114-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L65" >}}
114+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L66" >}}
115115
{{< /tab >}}
116116
{{% tab header="Python" %}}
117117
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}}
@@ -168,7 +168,7 @@ Set excluded arguments on options:
168168

169169
{{< tabpane text=true >}}
170170
{{< tab header="Java" >}}
171-
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L78" >}}
171+
{{< gh-codeblock path="/examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L79" >}}
172172
{{< /tab >}}
173173
{{% tab header="Python" %}}
174174
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}}
@@ -205,7 +205,7 @@ To change the logging output to save to a specific file:
205205
{{< tabpane text=true >}}
206206
{{% tab header="Java" %}}
207207
{{< badge-version version="4.10" >}}
208-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L100" >}}
208+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L101" >}}
209209
**Note**: Java also allows setting file output by System Property:\
210210
Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\
211211
Property value: String representing path to log file
@@ -235,7 +235,7 @@ To change the logging output to display in the console as STDOUT:
235235
{{< tabpane text=true >}}
236236
{{% tab header="Java" %}}
237237
{{< badge-version version="4.10" >}}
238-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L113" >}}
238+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L114" >}}
239239
**Note**: Java also allows setting console output by System Property;\
240240
Property key: `EdgeDriverService.EDGE_DRIVER_LOG_PROPERTY`\
241241
Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR`
@@ -268,7 +268,7 @@ so this example is just setting the log level generically:
268268
{{< tabpane text=true >}}
269269
{{% tab header="Java" %}}
270270
{{< badge-version version="4.8" >}}
271-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L126-L127" >}}
271+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L127-L128" >}}
272272
**Note**: Java also allows setting log level by System Property:\
273273
Property key: `EdgeDriverService.EDGE_DRIVER_LOG_LEVEL_PROPERTY`\
274274
Property value: String representation of `ChromiumDriverLogLevel` enum
@@ -302,7 +302,7 @@ The log output will be managed by the driver, not the process, so minor differen
302302
{{< tabpane text=true >}}
303303
{{% tab header="Java" %}}
304304
{{< badge-version version="4.8" >}}
305-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L142-L143" >}}
305+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L143-L144" >}}
306306
**Note**: Java also allows toggling these features by System Property:\
307307
Property keys: `EdgeDriverService.EDGE_DRIVER_APPEND_LOG_PROPERTY` and `EdgeDriverService.EDGE_DRIVER_READABLE_TIMESTAMP`\
308308
Property value: `"true"` or `"false"`
@@ -334,7 +334,7 @@ Note that this is an unsupported feature, and bugs will not be investigated.
334334
{{< tabpane text=true >}}
335335
{{% tab header="Java" %}}
336336
{{< badge-version version="4.8" >}}
337-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L160-L161" >}}
337+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L161-L162" >}}
338338
**Note**: Java also allows disabling build checks by System Property:\
339339
Property key: `EdgeDriverService.EDGE_DRIVER_DISABLE_BUILD_CHECK`\
340340
Property value: `"true"` or `"false"`
@@ -445,7 +445,7 @@ You can simulate various network conditions.
445445

446446
{{< tabpane text=true >}}
447447
{{< tab header="Java" >}}
448-
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L183" >}}
448+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/browsers/EdgeTest.java#L184" >}}
449449
{{< /tab >}}
450450
{{< tab header="Python" >}}
451451
{{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L149" >}}

0 commit comments

Comments
 (0)