Skip to content

Commit 8992e9c

Browse files
Local driver examples added (Creating Sessions) (#2004)[deploy site]
Added the local driver examples under Creating Sessions section of drivers page for Java, CSharp and JS. Have verified the fixes locally. Co-authored-by: Sri Harsha <12621691+harsha509@users.noreply.github.com>
1 parent 0fe3888 commit 8992e9c

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

website_and_docs/content/documentation/webdriver/drivers/_index.en.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The session is created automatically by initializing a new Driver class object.
1414

1515
Each language allows a session to be created with arguments from one of these classes (or equivalent):
1616

17-
* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but this is required for remote
17+
* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but
18+
this is required for remote
1819
* Some form of [HTTP Client configuration]({{< ref "http_client.md" >}}) (the implementation varies between languages)
1920
* [Listeners]({{< ref "listeners.md" >}})
2021

@@ -23,23 +24,24 @@ Each language allows a session to be created with arguments from one of these cl
2324
The primary unique argument for starting a local driver includes information about starting the required driver service
2425
on the local machine.
2526

26-
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver
27+
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser
28+
driver
2729

2830
{{< tabpane text=true >}}
2931
{{< tab header="Java" >}}
30-
{{< badge-code >}}
32+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}}
3133
{{< /tab >}}
3234
{{% tab header="Python" %}}
3335
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}}
3436
{{% /tab %}}
3537
{{< tab header="CSharp" >}}
36-
{{< badge-code >}}
38+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}}
3739
{{< /tab >}}
3840
{{< tab header="Ruby" >}}
3941
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}}
4042
{{< /tab >}}
4143
{{< tab header="JavaScript" >}}
42-
{{< badge-code >}}
44+
{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}}
4345
{{< /tab >}}
4446
{{< tab header="Kotlin" >}}
4547
{{< badge-code >}}
@@ -51,12 +53,11 @@ on the local machine.
5153
The primary unique argument for starting a remote driver includes information about where to execute the code.
5254
Read the details in the [Remote Driver Section]({{< ref "remote_webdriver.md" >}})
5355

54-
5556
## Quitting Sessions
5657

5758
Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session).
5859

59-
Important note: the `quit` method is different from the `close` method,
60+
Important note: the `quit` method is different from the `close` method,
6061
and it is recommended to always use `quit` to end the session
6162

6263
{{< tabpane text=true >}}

website_and_docs/content/documentation/webdriver/drivers/_index.ja.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,31 @@ weight: 3
1414

1515
各言語では、次のいずれかのクラス (または同等のもの) の引数を使用してセッションを作成することができます。
1616

17-
* [オプション]({{< ref "options.md" >}}) 作成を希望するセッションの種類 ; ローカルにはデフォルト値を使用しますが、リモートには必須です。
17+
* [オプション]({{< ref "options.md" >}}) 作成を希望するセッションの種類 ; ローカルにはデフォルト値を使用しますが、リモートには必須です。
1818
* 何らかの形の[HTTP Client configuration]({{< ref "http_client.md" >}}) (実装は言語によって異なります)
1919
* [リスナー]({{< ref "listeners.md" >}})
20-
20+
2121
### ローカルドライバー
2222

2323
ローカルドライバーを起動するための主な一意の引数には、ローカルコンピューターで必要なドライバーサービスを起動するための情報が含まれます。
2424

25-
2625
* [Service]({{< ref "service.md" >}})オブジェクトはローカルドライバーにのみ適用され、ブラウザーのドライバーに関する情報を提供します。
2726

2827
{{< tabpane text=true >}}
2928
{{< tab header="Java" >}}
30-
{{< badge-code >}}
29+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}}
3130
{{< /tab >}}
3231
{{% tab header="Python" %}}
3332
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}}
3433
{{% /tab %}}
3534
{{< tab header="CSharp" >}}
36-
{{< badge-code >}}
35+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}}
3736
{{< /tab >}}
3837
{{< tab header="Ruby" >}}
3938
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}}
4039
{{< /tab >}}
4140
{{< tab header="JavaScript" >}}
42-
{{< badge-code >}}
41+
{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}}
4342
{{< /tab >}}
4443
{{< tab header="Kotlin" >}}
4544
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/drivers/_index.pt-br.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ The session is created automatically by initializing a new Driver class object.
1414

1515
Each language allows a session to be created with arguments from one of these classes (or equivalent):
1616

17-
* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but this is required for remote
17+
* [Options]({{< ref "options.md" >}}) to describe the kind of session you want; default values are used for local, but
18+
this is required for remote
1819
* Some form of [Http Client Configuration]({{< ref "http_client.md" >}}) (the implementation varies between languages)
1920
* [Listeners]({{< ref "listeners.md" >}})
2021

@@ -23,23 +24,24 @@ Each language allows a session to be created with arguments from one of these cl
2324
The primary unique argument for starting a local driver includes information about starting the required driver service
2425
on the local machine.
2526

26-
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver
27+
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser
28+
driver
2729

2830
{{< tabpane text=true >}}
2931
{{< tab header="Java" >}}
30-
{{< badge-code >}}
32+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}}
3133
{{< /tab >}}
3234
{{% tab header="Python" %}}
3335
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}}
3436
{{% /tab %}}
3537
{{< tab header="CSharp" >}}
36-
{{< badge-code >}}
38+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}}
3739
{{< /tab >}}
3840
{{< tab header="Ruby" >}}
3941
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}}
4042
{{< /tab >}}
4143
{{< tab header="JavaScript" >}}
42-
{{< badge-code >}}
44+
{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}}
4345
{{< /tab >}}
4446
{{< tab header="Kotlin" >}}
4547
{{< badge-code >}}
@@ -51,12 +53,11 @@ on the local machine.
5153
The primary unique argument for starting a remote driver includes information about where to execute the code.
5254
Read the details in the [Remote Driver Section]({{< ref "remote_webdriver.md" >}})
5355

54-
5556
## Quitting Sessions
5657

5758
Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session).
5859

59-
Important note: the `quit` method is different from the `close` method,
60+
Important note: the `quit` method is different from the `close` method,
6061
and it is recommended to always use `quit` to end the session
6162

6263
{{< tabpane text=true >}}

website_and_docs/content/documentation/webdriver/drivers/_index.zh-cn.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 3
88

99
## 创建会话
1010

11-
创建会话对应于W3C的命令 [新建会话](https://w3c.github.io/webdriver/#new-session)
11+
创建会话对应于W3C的命令 [新建会话](https://w3c.github.io/webdriver/#new-session)
1212

1313
会话是通过初始化新的驱动类对象自动创建的.
1414

@@ -27,19 +27,19 @@ weight: 3
2727

2828
{{< tabpane text=true >}}
2929
{{< tab header="Java" >}}
30-
{{< badge-code >}}
30+
{{< gh-codeblock path="examples/java/src/test/java/dev/selenium/drivers/OptionsTest.java#L23" >}}
3131
{{< /tab >}}
3232
{{% tab header="Python" %}}
3333
{{< gh-codeblock path="examples/python/tests/drivers/test_options.py#L10" >}}
3434
{{% /tab %}}
3535
{{< tab header="CSharp" >}}
36-
{{< badge-code >}}
36+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/BaseTest.cs#L42" >}}
3737
{{< /tab >}}
3838
{{< tab header="Ruby" >}}
3939
{{< gh-codeblock path="examples/ruby/spec/drivers/options_spec.rb#L14" >}}
4040
{{< /tab >}}
4141
{{< tab header="JavaScript" >}}
42-
{{< badge-code >}}
42+
{{< gh-codeblock path="examples/javascript/test/drivers/service.spec.js#L32-L36" >}}
4343
{{< /tab >}}
4444
{{< tab header="Kotlin" >}}
4545
{{< badge-code >}}
@@ -51,7 +51,6 @@ weight: 3
5151
用于启动远程驱动的首要唯一参数包括有关在何处执行代码的信息.
5252
请浏览 [远程驱动章节]({{< ref "remote_webdriver.md" >}})中的详细信息
5353

54-
5554
## 退出会话
5655

5756
退出会话对应于W3C的命令 [删除会话](https://w3c.github.io/webdriver/#delete-session).

0 commit comments

Comments
 (0)