Skip to content

Commit 5247171

Browse files
committed
create placeholders and move content into drivers section
1 parent 00683ca commit 5247171

32 files changed

+344
-65
lines changed
Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,47 @@
11
---
2-
title: "Configuring driver parameters"
2+
title: "Driver Sessions"
33
linkTitle: "Drivers"
4-
weight: 12
4+
weight: 3
55
---
66

7-
We learned how to [install drivers]({{< ref "../getting_started/install_drivers.md" >}}) in the Getting Started section.
7+
Starting and stopping a session is for opening and closing a browser.
88

9-
Selenium provides access to Service classes which are used to determine how the server is started
9+
## Creating Sessions
1010

11+
Creating a new session corresponds with the W3C command for [New session](https://w3c.github.io/webdriver/#new-session)
1112

13+
The session is created automatically by initializing a new Driver class object.
14+
15+
Each language allows a session to be created with arguments from one of these classes (or equivalent):
16+
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
18+
* Some form of [CommandExecutor]({{< ref "executors.md" >}}) (the implementation varies between languages)
19+
* [Listeners]({{< ref "listeners.md" >}})
20+
21+
### Local Driver
22+
23+
The primary unique argument for starting a local driver includes information about starting the required driver service
24+
on the local machine.
25+
26+
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver
27+
28+
{{< alert-code >}}
29+
Show Starting Local driver with multiple arguments.
30+
{{< /alert-code >}}
31+
32+
### Remote Driver
33+
34+
The primary unique argument for starting a remote driver includes information about where to execute the code.
35+
Read the details in the [Remote Driver Section]()
36+
37+
38+
## Quitting Sessions
39+
40+
Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session).
41+
42+
Important note: the `quit` method is different from the `close` method,
43+
and it is recommended to always use `quit` to end the session
44+
45+
{{< alert-code >}}
46+
Show quitting a session.
47+
{{< /alert-code >}}
Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,47 @@
11
---
2-
title: "Configuring driver parameters"
2+
title: "Driver Sessions"
33
linkTitle: "Drivers"
4-
weight: 12
5-
needsTranslation: true
4+
weight: 3
65
---
76

8-
We learned how to [install drivers]({{< ref "../getting_started/install_drivers.md" >}}) in the Getting Started section.
7+
Starting and stopping a session is for opening and closing a browser.
98

10-
Selenium provides access to Service classes which are used to determine how the server is started
9+
## Creating Sessions
1110

11+
Creating a new session corresponds with the W3C command for [New session](https://w3c.github.io/webdriver/#new-session)
1212

13+
The session is created automatically by initializing a new Driver class object.
14+
15+
Each language allows a session to be created with arguments from one of these classes (or equivalent):
16+
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
18+
* Some form of [CommandExecutor]({{< ref "executors.md" >}}) (the implementation varies between languages)
19+
* [Listeners]({{< ref "listeners.md" >}})
20+
21+
### Local Driver
22+
23+
The primary unique argument for starting a local driver includes information about starting the required driver service
24+
on the local machine.
25+
26+
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver
27+
28+
{{< alert-code >}}
29+
Show Starting Local driver with multiple arguments.
30+
{{< /alert-code >}}
31+
32+
### Remote Driver
33+
34+
The primary unique argument for starting a remote driver includes information about where to execute the code.
35+
Read the details in the [Remote Driver Section]()
36+
37+
38+
## Quitting Sessions
39+
40+
Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session).
41+
42+
Important note: the `quit` method is different from the `close` method,
43+
and it is recommended to always use `quit` to end the session
44+
45+
{{< alert-code >}}
46+
Show quitting a session.
47+
{{< /alert-code >}}
Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,47 @@
11
---
2-
title: "Configurando o driver"
2+
title: "Driver Sessions"
33
linkTitle: "Drivers"
4-
weight: 12
5-
needsTranslation: true
4+
weight: 3
65
---
76

8-
Nós aprendemos como [instalar drivers]({{< ref "../getting_started/install_drivers.md" >}}) na sessão de Introdução.
7+
Starting and stopping a session is for opening and closing a browser.
98

10-
Selenium concede o acesso para classes de serviço que são usadas para determinar como o servidor será iniciado.
9+
## Creating Sessions
10+
11+
Creating a new session corresponds with the W3C command for [New session](https://w3c.github.io/webdriver/#new-session)
12+
13+
The session is created automatically by initializing a new Driver class object.
14+
15+
Each language allows a session to be created with arguments from one of these classes (or equivalent):
16+
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
18+
* Some form of [CommandExecutor]({{< ref "executors.md" >}}) (the implementation varies between languages)
19+
* [Listeners]({{< ref "listeners.md" >}})
20+
21+
### Local Driver
22+
23+
The primary unique argument for starting a local driver includes information about starting the required driver service
24+
on the local machine.
25+
26+
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver
27+
28+
{{< alert-code >}}
29+
Show Starting Local driver with multiple arguments.
30+
{{< /alert-code >}}
31+
32+
### Remote Driver
33+
34+
The primary unique argument for starting a remote driver includes information about where to execute the code.
35+
Read the details in the [Remote Driver Section]()
36+
37+
38+
## Quitting Sessions
39+
40+
Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session).
41+
42+
Important note: the `quit` method is different from the `close` method,
43+
and it is recommended to always use `quit` to end the session
44+
45+
{{< alert-code >}}
46+
Show quitting a session.
47+
{{< /alert-code >}}
Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,47 @@
11
---
2-
title: "配置驱动参数"
3-
linkTitle: "驱动"
4-
weight: 12
2+
title: "Driver Sessions"
3+
linkTitle: "Drivers"
4+
weight: 3
55
---
66

7-
我们在入门部分学习了如何[安装驱动]({{< ref "../getting_started/install_drivers.md" >}}) .
7+
Starting and stopping a session is for opening and closing a browser.
88

9-
Selenium提供对服务类的访问,
10-
这些服务类用于确定服务器的启动方式
9+
## Creating Sessions
1110

11+
Creating a new session corresponds with the W3C command for [New session](https://w3c.github.io/webdriver/#new-session)
1212

13+
The session is created automatically by initializing a new Driver class object.
14+
15+
Each language allows a session to be created with arguments from one of these classes (or equivalent):
16+
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
18+
* Some form of [CommandExecutor]({{< ref "executors.md" >}}) (the implementation varies between languages)
19+
* [Listeners]({{< ref "listeners.md" >}})
20+
21+
### Local Driver
22+
23+
The primary unique argument for starting a local driver includes information about starting the required driver service
24+
on the local machine.
25+
26+
* [Service]({{< ref "service.md" >}}) object applies only to local drivers and provides information about the browser driver
27+
28+
{{< alert-code >}}
29+
Show Starting Local driver with multiple arguments.
30+
{{< /alert-code >}}
31+
32+
### Remote Driver
33+
34+
The primary unique argument for starting a remote driver includes information about where to execute the code.
35+
Read the details in the [Remote Driver Section]()
36+
37+
38+
## Quitting Sessions
39+
40+
Quitting a session corresponds to W3C command for [Deleting a Session](https://w3c.github.io/webdriver/#delete-session).
41+
42+
Important note: the `quit` method is different from the `close` method,
43+
and it is recommended to always use `quit` to end the session
44+
45+
{{< alert-code >}}
46+
Show quitting a session.
47+
{{< /alert-code >}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command executors"
3+
linkTitle: "Executors"
4+
weight: 3
5+
---
6+
7+
These allow you to set various parameters for the HTTP library
8+
9+
{{< alert-code />}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command executors"
3+
linkTitle: "Executors"
4+
weight: 3
5+
---
6+
7+
These allow you to set various parameters for the HTTP library
8+
9+
{{< alert-code />}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command executors"
3+
linkTitle: "Executors"
4+
weight: 3
5+
---
6+
7+
These allow you to set various parameters for the HTTP library
8+
9+
{{< alert-code />}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command executors"
3+
linkTitle: "Executors"
4+
weight: 3
5+
---
6+
7+
These allow you to set various parameters for the HTTP library
8+
9+
{{< alert-code />}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command Listeners"
3+
linkTitle: "Listeners"
4+
weight: 3
5+
---
6+
7+
These allow you to execute custom actions in every time specific Selenium commands are sent
8+
9+
{{< alert-code />}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command Listeners"
3+
linkTitle: "Listeners"
4+
weight: 3
5+
---
6+
7+
These allow you to execute custom actions in every time specific Selenium commands are sent
8+
9+
{{< alert-code />}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command Listeners"
3+
linkTitle: "Listeners"
4+
weight: 3
5+
---
6+
7+
These allow you to execute custom actions in every time specific Selenium commands are sent
8+
9+
{{< alert-code />}}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: "Command Listeners"
3+
linkTitle: "Listeners"
4+
weight: 3
5+
---
6+
7+
These allow you to execute custom actions in every time specific Selenium commands are sent
8+
9+
{{< alert-code />}}

website_and_docs/content/documentation/webdriver/capabilities/shared.en.md renamed to website_and_docs/content/documentation/webdriver/drivers/options.en.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: "Shared capabilities"
3-
linkTitle: "Shared"
2+
title: "Browser Options"
3+
linkTitle: "Options"
44
weight: 2
55
description: >-
66
These capabilities are shared by all browsers.
77
aliases: [
8+
"/documentation/en/capabilitis/shared/",
89
"/documentation/en/driver_idiosyncrasies/shared_capabilities/",
910
"/documentation/webdriver/capabilities/shared_capabilities/",
1011
"/documentation/en/webdriver/http_proxies/",
@@ -16,14 +17,13 @@ aliases: [
1617
]
1718
---
1819

19-
In order to create a new session by Selenium WebDriver,
20-
the local end should provide the basic capabilities to the remote end.
21-
The remote end uses the same set of capabilities to
22-
create a session and describes the current session features.
20+
In Selenium 3, capabilities were defined in a session by using Desired Capabilities classes.
21+
As of Selenium 4, you must use the browser options classes.
22+
For remote driver sessions, a browser options instance is required as it determines which browser will be used.
2323

24-
WebDriver provides capabilities that each remote
25-
end will/should support the implementation.
26-
The following capabilities are supported by WebDriver:
24+
These options are described in the w3c specification for [Capabilities](https://w3c.github.io/webdriver/#capabilities).
25+
26+
Each browser has [custom options]() that may be defined in addition to the ones defined in the specification.
2727

2828
## browserName
2929

website_and_docs/content/documentation/webdriver/capabilities/shared.ja.md renamed to website_and_docs/content/documentation/webdriver/drivers/options.ja.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2-
title: "共通のCapability"
3-
linkTitle: "共通のCapability"
2+
title: "Browser Options"
3+
linkTitle: "Options"
44
weight: 2
55
description: >-
66
これらのCapabilityはすべてのブラウザで共通です。
77
aliases: [
8+
"/documentation/ja/capabilitis/shared/",
89
"/documentation/ja/driver_idiosyncrasies/shared_capabilities/",
910
"/ja/documentation/webdriver/capabilities/shared_capabilities/",
1011
"/documentation/ja/webdriver/http_proxies/",
@@ -25,11 +26,13 @@ aliases: [
2526
</p>
2627
{{% /pageinfo %}}
2728

28-
Selenium WebDriverで新しいセッションを作成するには、ローカルエンドがリモートエンドに基本的なCapabilities(ブラウザの設定情報)を提供する必要があります。
29-
リモートエンドは、一連の同じCapabilityを使用してセッションを作成し、現在のセッション機能を描きます。
29+
In Selenium 3, capabilities were defined in a session by using Desired Capabilities classes.
30+
As of Selenium 4, you must use the browser options classes.
31+
For remote driver sessions, a browser options instance is required as it determines which browser will be used.
3032

31-
WebDriverは、各リモートエンドがCapabilityをサポートする/すべきCapabilityを提供します。
32-
WebDriverがサポートするCapabilityは次のとおりです。
33+
These options are described in the w3c specification for [Capabilities](https://w3c.github.io/webdriver/#capabilities).
34+
35+
Each browser has [custom options]() that may be defined in addition to the ones defined in the specification.
3336

3437
## browserName
3538

website_and_docs/content/documentation/webdriver/capabilities/shared.pt-br.md renamed to website_and_docs/content/documentation/webdriver/drivers/options.pt-br.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
2-
title: "Recursos compartilhados"
3-
linkTitle: "Recursos compartilhados"
2+
title: "Browser Options"
3+
linkTitle: "Options"
44
weight: 2
55
needsTranslation: true
66
description: >-
77
These capabilities are shared by all browsers.
88
aliases: [
9+
"/documentation/pt-br/capabilitis/shared/",
910
"/documentation/pt-br/driver_idiosyncrasies/shared_capabilities/",
1011
"/pt-br/documentation/webdriver/capabilities/shared_capabilities/",
1112
"/documentation/pt-br/webdriver/http_proxies/",
@@ -26,14 +27,13 @@ aliases: [
2627
</p>
2728
{{% /pageinfo %}}
2829

29-
Para criar uma nova sessão por Selenium WebDriver,
30-
a extremidade local deve fornecer os recursos básicos para a extremidade remota.
31-
A extremidade remota usa o mesmo conjunto de recursos para
32-
cria uma sessão e descreve os recursos da sessão atual.
30+
In Selenium 3, capabilities were defined in a session by using Desired Capabilities classes.
31+
As of Selenium 4, you must use the browser options classes.
32+
For remote driver sessions, a browser options instance is required as it determines which browser will be used.
3333

34-
WebDriver fornece recursos que cada controle extremidade
35-
remota irá/deverá apoiar a implementação.
36-
A seguir estão os recursos que o WebDriver suporta:
34+
These options are described in the w3c specification for [Capabilities](https://w3c.github.io/webdriver/#capabilities).
35+
36+
Each browser has [custom options]() that may be defined in addition to the ones defined in the specification.
3737

3838
## browserName
3939

0 commit comments

Comments
 (0)