Skip to content

Commit 5c373c2

Browse files
committed
Showing how to delete a session using the Grid URL
[deploy site] Fixes SeleniumHQ/selenium#13864
1 parent 9f98163 commit 5c373c2

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

website_and_docs/content/documentation/grid/advanced_features/endpoints.en.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ For every Node, the status includes information regarding Node availability, ses
1919
cURL GET 'http://localhost:4444/status'
2020
```
2121

22+
### Delete session
23+
24+
Deleting the session terminates the WebDriver session, quits the driver and removes it from the active sessions map.
25+
Any request using the removed session-id or reusing the driver instance will throw an error.
26+
27+
```shell
28+
cURL --request DELETE 'http://localhost:4444/session/<session-id>'
29+
```
30+
31+
### Which URL should I use?
32+
2233
In the Standalone mode, the Grid URL is the Standalone server address.
2334

2435
In the Hub-Node mode, the Grid URL is the Hub server address.

website_and_docs/content/documentation/grid/advanced_features/endpoints.ja.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ Grid ステータスは Grid の現在の状態を提供します。 登録さ
1919
cURL GET 'http://localhost:4444/status'
2020
```
2121

22+
### セッションの削除
23+
24+
セッションを削除すると、WebDriver セッションが終了し、ドライバがアクティブなセッションマップから削除されます。
25+
削除されたセッション ID を使用するリクエストや、ドライバのインスタンスを再利用しようとすると、エラーとなります。
26+
27+
```shell
28+
cURL --request DELETE 'http://localhost:4444/session/<session-id>'
29+
```
30+
31+
### Which URL should I use?
32+
2233
スタンドアロンモードでは、Grid URL は スタンドアロンサーバーのアドレスになります。
2334

2435
ハブ&ノードモードでは、Grid URL は ハブのアドレスになります。

website_and_docs/content/documentation/grid/advanced_features/endpoints.pt-br.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ Para cada nó, o status inclui informações sobre a disponibilidade, sessões e
1919
cURL GET 'http://localhost:4444/status'
2020
```
2121

22+
### Deletar sessão
23+
24+
A exclusão da sessão encerra a sessão do WebDriver, fecha o driver e o remove do mapa de sessões ativas.
25+
Qualquer solicitação usando o id de sessão removido ou reutilizando a instância do driver gerará um erro.
26+
27+
```shell
28+
cURL --request DELETE 'http://localhost:4444/session/<session-id>'
29+
```
30+
31+
### Which URL should I use?
32+
2233
No modo Standalone, o URL da Grid é o endereço do servidor Standalone.
2334

2435
No modo Hub-Node, a URL da Grid é o endereço do servidor Hub.

website_and_docs/content/documentation/grid/advanced_features/endpoints.zh-cn.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ Grid状态提供Grid的当前状态.
2121
cURL GET 'http://localhost:4444/status'
2222
```
2323

24+
### 检查会话所有者
25+
26+
要检查会话是否属于某一节点, 请使用下面列出的cURL命令.
27+
28+
```shell
29+
cURL --request DELETE 'http://localhost:4444/session/<session-id>'
30+
```
31+
32+
### Which URL should I use?
33+
2434
在独立模式下, Grid URL是独立服务器的地址.
2535

2636
在集线器节点模式下, Grid URL是集线器服务器的地址.

0 commit comments

Comments
 (0)