@@ -16,7 +16,7 @@ Grid status provides the current state of the Grid. It consists of details about
16
16
For every Node, the status includes information regarding Node availability, sessions, and slots.
17
17
18
18
``` shell
19
- cURL GET ' http://localhost:4444/status'
19
+ curl --request GET ' http://localhost:4444/status'
20
20
```
21
21
22
22
### Delete session
@@ -25,7 +25,7 @@ Deleting the session terminates the WebDriver session, quits the driver and remo
25
25
Any request using the removed session-id or reusing the driver instance will throw an error.
26
26
27
27
``` shell
28
- cURL --request DELETE ' http://localhost:4444/session/<session-id>'
28
+ curl --request DELETE ' http://localhost:4444/session/<session-id>'
29
29
```
30
30
31
31
### Which URL should I use?
@@ -42,7 +42,7 @@ Default URL for all the above modes is http://localhost:4444.
42
42
43
43
### Remove Node
44
44
45
- To remove the Node from the Grid, use the cURL command enlisted below.
45
+ To remove the Node from the Grid, use the curl command enlisted below.
46
46
It does not stop any ongoing session running on that Node.
47
47
The Node continues running as it is unless explicitly killed.
48
48
The Distributor is no longer aware of the Node and hence any matching new session request
@@ -52,15 +52,15 @@ In the Standalone mode, the Distributor URL is the Standalone server address.
52
52
53
53
In the Hub-Node mode, the Distributor URL is the Hub server address.
54
54
``` shell
55
- cURL --request DELETE ' http://localhost:4444/se/grid/distributor/node/<node-id>' --header ' X-REGISTRATION-SECRET: <secret> '
55
+ curl --request DELETE ' http://localhost:4444/se/grid/distributor/node/<node-id>' --header ' X-REGISTRATION-SECRET: <secret> '
56
56
```
57
57
In the fully distributed mode, the URL is the Router server address.
58
58
``` shell
59
- cURL --request DELETE ' http://localhost:4444/se/grid/distributor/node/<node-id>' --header ' X-REGISTRATION-SECRET: <secret>'
59
+ curl --request DELETE ' http://localhost:4444/se/grid/distributor/node/<node-id>' --header ' X-REGISTRATION-SECRET: <secret>'
60
60
```
61
61
If no registration secret has been configured while setting up the Grid, then use
62
62
``` shell
63
- cURL --request DELETE ' http://<Router-URL>/se/grid/distributor/node/<node-id>' --header ' X-REGISTRATION-SECRET;'
63
+ curl --request DELETE ' http://<Router-URL>/se/grid/distributor/node/<node-id>' --header ' X-REGISTRATION-SECRET;'
64
64
```
65
65
66
66
### Drain Node
@@ -73,15 +73,15 @@ In the Standalone mode, the Distributor URL is the Standalone server address.
73
73
74
74
In the Hub-Node mode, the Distributor URL is the Hub server address.
75
75
``` shell
76
- cURL --request POST ' http://localhost:4444/se/grid/distributor/node/<node-id>/drain' --header ' X-REGISTRATION-SECRET: <secret> '
76
+ curl --request POST ' http://localhost:4444/se/grid/distributor/node/<node-id>/drain' --header ' X-REGISTRATION-SECRET: <secret> '
77
77
```
78
78
In the fully distributed mode, the URL is the Router server address.
79
79
``` shell
80
- cURL --request POST ' http://localhost:4444/se/grid/distributor/node/<node-id>/drain' --header ' X-REGISTRATION-SECRET: <secret>'
80
+ curl --request POST ' http://localhost:4444/se/grid/distributor/node/<node-id>/drain' --header ' X-REGISTRATION-SECRET: <secret>'
81
81
```
82
82
If no registration secret has been configured while setting up the Grid, then use
83
83
``` shell
84
- cURL --request POST ' http://<Router-URL>/se/grid/distributor/node/<node-id>/drain' --header ' X-REGISTRATION-SECRET;'
84
+ curl --request POST ' http://<Router-URL>/se/grid/distributor/node/<node-id>/drain' --header ' X-REGISTRATION-SECRET;'
85
85
```
86
86
87
87
## Node
@@ -94,37 +94,37 @@ In case of multiple Nodes, use [Grid status](#grid-status) to get all Node detai
94
94
### Status
95
95
96
96
The Node status is essentially a health-check for the Node.
97
- Distributor pings the node status are regular intervals and updates the Grid Model accordingly.
97
+ Distributor pings the node status at regular intervals and updates the Grid Model accordingly.
98
98
The status includes information regarding availability, sessions, and slots.
99
99
100
100
``` shell
101
- cURL --request GET ' http://localhost:5555/status'
101
+ curl --request GET ' http://localhost:5555/status'
102
102
```
103
103
104
104
### Drain
105
105
106
106
Distributor passes the [ drain] ( #drain-node ) command to the appropriate node identified by the node-id.
107
- To drain the Node directly, use the cuRL command enlisted below.
107
+ To drain the Node directly, use the curl command enlisted below.
108
108
Both endpoints are valid and produce the same result. Drain finishes the ongoing sessions before stopping the Node.
109
109
110
110
``` shell
111
- cURL --request POST ' http://localhost:5555/se/grid/node/drain' --header ' X-REGISTRATION-SECRET: <secret>'
111
+ curl --request POST ' http://localhost:5555/se/grid/node/drain' --header ' X-REGISTRATION-SECRET: <secret>'
112
112
```
113
113
If no registration secret has been configured while setting up the Grid, then use
114
114
``` shell
115
- cURL --request POST ' http://<node-URL>/se/grid/node/drain' --header ' X-REGISTRATION-SECRET;'
115
+ curl --request POST ' http://<node-URL>/se/grid/node/drain' --header ' X-REGISTRATION-SECRET;'
116
116
```
117
117
118
118
### Check session owner
119
119
120
- To check if a session belongs to a Node, use the cURL command enlisted below.
120
+ To check if a session belongs to a Node, use the curl command enlisted below.
121
121
122
122
``` shell
123
- cURL --request GET ' http://localhost:5555/se/grid/node/owner/<session-id>' --header ' X-REGISTRATION-SECRET: <secret>'
123
+ curl --request GET ' http://localhost:5555/se/grid/node/owner/<session-id>' --header ' X-REGISTRATION-SECRET: <secret>'
124
124
```
125
125
If no registration secret has been configured while setting up the Grid, then use
126
126
``` shell
127
- cURL --request GET ' http://<node-URL>/se/grid/node/owner/<session-id>' --header ' X-REGISTRATION-SECRET;'
127
+ curl --request GET ' http://<node-URL>/se/grid/node/owner/<session-id>' --header ' X-REGISTRATION-SECRET;'
128
128
```
129
129
130
130
It will return true if the session belongs to the Node else it will return false.
@@ -135,19 +135,19 @@ Deleting the session terminates the WebDriver session, quits the driver and remo
135
135
Any request using the removed session-id or reusing the driver instance will throw an error.
136
136
137
137
``` shell
138
- cURL --request DELETE ' http://localhost:5555/se/grid/node/session/<session-id>' --header ' X-REGISTRATION-SECRET: <secret>'
138
+ curl --request DELETE ' http://localhost:5555/se/grid/node/session/<session-id>' --header ' X-REGISTRATION-SECRET: <secret>'
139
139
```
140
140
If no registration secret has been configured while setting up the Grid, then use
141
141
``` shell
142
- cURL --request DELETE ' http://<node-URL>/se/grid/node/session/<session-id>' --header ' X-REGISTRATION-SECRET;'
142
+ curl --request DELETE ' http://<node-URL>/se/grid/node/session/<session-id>' --header ' X-REGISTRATION-SECRET;'
143
143
```
144
144
145
145
## New Session Queue
146
146
147
147
### Clear New Session Queue
148
148
149
149
New Session Request Queue holds the new session requests.
150
- To clear the queue, use the cURL command enlisted below.
150
+ To clear the queue, use the curl command enlisted below.
151
151
Clearing the queue rejects all the requests in the queue. For each such request, the server returns an error response to the respective client.
152
152
The result of the clear command is the total number of deleted requests.
153
153
@@ -156,33 +156,33 @@ In the Standalone mode, the Queue URL is the Standalone server address.
156
156
In the Hub-Node mode, the Queue URL is the Hub server address.
157
157
158
158
``` shell
159
- cURL --request DELETE ' http://localhost:4444/se/grid/newsessionqueue/queue' --header ' X-REGISTRATION-SECRET: <secret>'
159
+ curl --request DELETE ' http://localhost:4444/se/grid/newsessionqueue/queue' --header ' X-REGISTRATION-SECRET: <secret>'
160
160
```
161
161
162
162
In the fully distributed mode, the Queue URL is Router server address.
163
163
``` shell
164
- cURL --request DELETE ' http://localhost:4444/se/grid/newsessionqueue/queue' --header ' X-REGISTRATION-SECRET: <secret>'
164
+ curl --request DELETE ' http://localhost:4444/se/grid/newsessionqueue/queue' --header ' X-REGISTRATION-SECRET: <secret>'
165
165
```
166
166
167
167
If no registration secret has been configured while setting up the Grid, then use
168
168
``` shell
169
- cURL --request DELETE ' http://<Router-URL>/se/grid/newsessionqueue/queue' --header ' X-REGISTRATION-SECRET;'
169
+ curl --request DELETE ' http://<Router-URL>/se/grid/newsessionqueue/queue' --header ' X-REGISTRATION-SECRET;'
170
170
```
171
171
172
172
### Get New Session Queue Requests
173
173
174
174
New Session Request Queue holds the new session requests.
175
- To get the current requests in the queue, use the cURL command enlisted below.
175
+ To get the current requests in the queue, use the curl command enlisted below.
176
176
The response returns the total number of requests in the queue and the request payloads.
177
177
178
178
In the Standalone mode, the Queue URL is the Standalone server address.
179
179
180
180
In the Hub-Node mode, the Queue URL is the Hub server address.
181
181
182
182
``` shell
183
- cURL --request GET ' http://localhost:4444/se/grid/newsessionqueue/queue'
183
+ curl --request GET ' http://localhost:4444/se/grid/newsessionqueue/queue'
184
184
```
185
185
186
186
In the fully distributed mode, the Queue URL is Router server address.
187
187
``` shell
188
- cURL --request GET ' http://localhost:4444/se/grid/newsessionqueue/queue'
188
+ curl --request GET ' http://localhost:4444/se/grid/newsessionqueue/queue'
0 commit comments