diff --git a/website_and_docs/content/documentation/grid/advanced_features/endpoints.en.md b/website_and_docs/content/documentation/grid/advanced_features/endpoints.en.md index 7e902bc0e996..3d605084c87c 100644 --- a/website_and_docs/content/documentation/grid/advanced_features/endpoints.en.md +++ b/website_and_docs/content/documentation/grid/advanced_features/endpoints.en.md @@ -16,7 +16,7 @@ Grid status provides the current state of the Grid. It consists of details about For every Node, the status includes information regarding Node availability, sessions, and slots. ```shell -cURL GET 'http://localhost:4444/status' +curl --request GET 'http://localhost:4444/status' ``` ### Delete session @@ -25,7 +25,7 @@ Deleting the session terminates the WebDriver session, quits the driver and remo Any request using the removed session-id or reusing the driver instance will throw an error. ```shell -cURL --request DELETE 'http://localhost:4444/session/' +curl --request DELETE 'http://localhost:4444/session/' ``` ### Which URL should I use? @@ -42,7 +42,7 @@ Default URL for all the above modes is http://localhost:4444. ### Remove Node -To remove the Node from the Grid, use the cURL command enlisted below. +To remove the Node from the Grid, use the curl command enlisted below. It does not stop any ongoing session running on that Node. The Node continues running as it is unless explicitly killed. 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. In the Hub-Node mode, the Distributor URL is the Hub server address. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` In the fully distributed mode, the URL is the Router server address. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` If no registration secret has been configured while setting up the Grid, then use ```shell -cURL --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' ``` ### Drain Node @@ -73,15 +73,15 @@ In the Standalone mode, the Distributor URL is the Standalone server address. In the Hub-Node mode, the Distributor URL is the Hub server address. ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` In the fully distributed mode, the URL is the Router server address. ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` If no registration secret has been configured while setting up the Grid, then use ```shell -cURL --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' ``` ## Node @@ -94,37 +94,37 @@ In case of multiple Nodes, use [Grid status](#grid-status) to get all Node detai ### Status The Node status is essentially a health-check for the Node. -Distributor pings the node status are regular intervals and updates the Grid Model accordingly. +Distributor pings the node status at regular intervals and updates the Grid Model accordingly. The status includes information regarding availability, sessions, and slots. ```shell -cURL --request GET 'http://localhost:5555/status' +curl --request GET 'http://localhost:5555/status' ``` ### Drain Distributor passes the [drain](#drain-node) command to the appropriate node identified by the node-id. -To drain the Node directly, use the cuRL command enlisted below. +To drain the Node directly, use the curl command enlisted below. Both endpoints are valid and produce the same result. Drain finishes the ongoing sessions before stopping the Node. ```shell -cURL --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' ``` If no registration secret has been configured while setting up the Grid, then use ```shell -cURL --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' ``` ### Check session owner -To check if a session belongs to a Node, use the cURL command enlisted below. +To check if a session belongs to a Node, use the curl command enlisted below. ```shell -cURL --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' +curl --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' ``` If no registration secret has been configured while setting up the Grid, then use ```shell -cURL --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' +curl --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' ``` It will return true if the session belongs to the Node else it will return false. @@ -135,11 +135,11 @@ Deleting the session terminates the WebDriver session, quits the driver and remo Any request using the removed session-id or reusing the driver instance will throw an error. ```shell -cURL --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' ``` If no registration secret has been configured while setting up the Grid, then use ```shell -cURL --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' ``` ## New Session Queue @@ -147,7 +147,7 @@ cURL --request DELETE 'http:///se/grid/node/session/' --he ### Clear New Session Queue New Session Request Queue holds the new session requests. -To clear the queue, use the cURL command enlisted below. +To clear the queue, use the curl command enlisted below. Clearing the queue rejects all the requests in the queue. For each such request, the server returns an error response to the respective client. The result of the clear command is the total number of deleted requests. @@ -156,23 +156,23 @@ In the Standalone mode, the Queue URL is the Standalone server address. In the Hub-Node mode, the Queue URL is the Hub server address. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` In the fully distributed mode, the Queue URL is Router server address. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` If no registration secret has been configured while setting up the Grid, then use ```shell -cURL --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' ``` ### Get New Session Queue Requests New Session Request Queue holds the new session requests. -To get the current requests in the queue, use the cURL command enlisted below. +To get the current requests in the queue, use the curl command enlisted below. The response returns the total number of requests in the queue and the request payloads. In the Standalone mode, the Queue URL is the Standalone server address. @@ -180,9 +180,9 @@ In the Standalone mode, the Queue URL is the Standalone server address. In the Hub-Node mode, the Queue URL is the Hub server address. ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' ``` In the fully distributed mode, the Queue URL is Router server address. ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' diff --git a/website_and_docs/content/documentation/grid/advanced_features/endpoints.ja.md b/website_and_docs/content/documentation/grid/advanced_features/endpoints.ja.md index cfc12e26ed1e..5407895187d8 100644 --- a/website_and_docs/content/documentation/grid/advanced_features/endpoints.ja.md +++ b/website_and_docs/content/documentation/grid/advanced_features/endpoints.ja.md @@ -16,7 +16,7 @@ Grid ステータスは Grid の現在の状態を提供します。 登録さ 各ノードのステータスには、ノードの稼働状況、セッション、およびスロットに関する情報が含まれます。 ```shell -cURL GET 'http://localhost:4444/status' +curl --request GET 'http://localhost:4444/status' ``` ### セッションの削除 @@ -25,7 +25,7 @@ cURL GET 'http://localhost:4444/status' 削除されたセッション ID を使用するリクエストや、ドライバのインスタンスを再利用しようとすると、エラーとなります。 ```shell -cURL --request DELETE 'http://localhost:4444/session/' +curl --request DELETE 'http://localhost:4444/session/' ``` ### Which URL should I use? @@ -42,7 +42,7 @@ cURL --request DELETE 'http://localhost:4444/session/' ### ノード削除 -ノードを Grid から削除するには、以下の cURL コマンドを使用します。 +ノードを Grid から削除するには、以下の curl コマンドを使用します。 このコマンドは、そのノード上で実行中のセッションを停止させるものではありません。 ノードは明示的に強制終了されない限り、そのまま動作し続けます。 ディストリビューターはそのノードを認識しなくなるため、マッチする新しいセッションのリクエストは はその Node に転送されません。 @@ -52,19 +52,19 @@ cURL --request DELETE 'http://localhost:4444/session/' ハブ&ノードモードでは、ディストリビューターの URL は ハブのアドレスになります。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` 完全分散モードでは、ディストリビューター URL は ディストリビューターのアドレスになります。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` Grid の設定時に登録用の secret を設定していない場合は次のようにします: ```shell -cURL --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' ``` ### ノードのドレイン @@ -78,19 +78,19 @@ cURL --request DELETE 'http:///se/grid/distributor/node/' - ハブ&ノードモードでは、ディストリビューターの URL は ハブのアドレスになります。 ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` 完全分散モードでは、ディストリビューター URL は ディストリビューターのアドレスになります。 ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` Grid の設定時に登録用の secret を設定していない場合は次のようにします: ```shell -cURL --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' ``` ## ノード @@ -106,38 +106,38 @@ cURL --request POST 'http:///se/grid/distributor/node//drai ステータスには稼働状況、セッション、およびスロットに関する情報が含まれます。 ```shell -cURL --request GET 'http://localhost:5555/status' +curl --request GET 'http://localhost:5555/status' ``` ### ドレイン ディストリビューターは [ドレイン](#ノードのドレイン)コマンドを適切なノードに渡します。 -ノードを直接ドレインするには以下の cURL コマンドを使います。 +ノードを直接ドレインするには以下の curl コマンドを使います。 どちらのエンドポイントも有効であり、同じ結果になります。 ドレインは、ノードを停止する前に進行中のセッションを終了させます。 ```shell -cURL --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' ``` Grid の設定時に登録用の secret を設定していない場合は次のようにします: ```shell -cURL --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' ``` ### セッションオーナーのチェック -あるセッションがノードに属しているかどうかをチェックするには、以下の cURL コマンドを使います。 +あるセッションがノードに属しているかどうかをチェックするには、以下の curl コマンドを使います。 ```shell -cURL --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' +curl --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' ``` Grid の設定時に登録用の secret を設定していない場合は次のようにします: ```shell -cURL --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' +curl --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' ``` もしセッションがノードに属していたら true を返し、そうでなければ false が返ります。 @@ -148,13 +148,13 @@ cURL --request GET 'http:///se/grid/node/owner/' --header 削除されたセッション ID を使用するリクエストや、ドライバのインスタンスを再利用しようとすると、エラーとなります。 ```shell -cURL --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' ``` Grid の設定時に登録用の secret を設定していない場合は次のようにします: ```shell -cURL --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' ``` ## 新規セッションキュー @@ -162,7 +162,7 @@ cURL --request DELETE 'http:///se/grid/node/session/' --he ### 新規セッションキューのクリア 新規セッションキューには、新規セッションリクエストが格納されます。 -キューをクリアするには、以下に挙げる cURL コマンドを使用します。 +キューをクリアするには、以下に挙げる curl コマンドを使用します。 キューを消去すると、キューにあるすべてのリクエストを拒否します。 サーバーは各リクエストのそれぞれのクライアントにエラーレスポンスを返します。 クリアコマンドの結果は、削除されたリクエストの数です。 @@ -172,25 +172,25 @@ cURL --request DELETE 'http:///se/grid/node/session/' --he ハブ&ノードモードでは、キューの URL は ハブのアドレスになります。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` 完全分散モードでは、キューの URL は 新規セッションキューのアドレスになります。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` Grid の設定時に登録用の secret を設定していない場合は次のようにします: ```shell -cURL --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' ``` ### 新規セッションリクエストの取得 新規セッションキューには、新規セッションリクエストが格納されます。 -キューにある現在のリクエストを取得するには、以下に挙げる cURL コマンドを使用します。 +キューにある現在のリクエストを取得するには、以下に挙げる curl コマンドを使用します。 レスポンスはキュー内のリクエストの数とリクエストのペイロードを返します。 スタンドアロンモードでは、キューの URL はスタンドアロンサーバーのアドレスとなります。 @@ -198,11 +198,11 @@ cURL --request DELETE 'http:///se/grid/newsessionqueue/queue' --head ハブ&ノードモードでは、キューの URL は ハブのアドレスになります。 ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' ``` 完全分散モードでは、キューの URL は 新規セッションキューのアドレスになります。 ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' ``` diff --git a/website_and_docs/content/documentation/grid/advanced_features/endpoints.pt-br.md b/website_and_docs/content/documentation/grid/advanced_features/endpoints.pt-br.md index f1221a1af8dd..046e2ab41fb8 100644 --- a/website_and_docs/content/documentation/grid/advanced_features/endpoints.pt-br.md +++ b/website_and_docs/content/documentation/grid/advanced_features/endpoints.pt-br.md @@ -16,7 +16,7 @@ O status da Grid fornece o estado atual da grid. Consiste em detalhes sobre cada Para cada nó, o status inclui informações sobre a disponibilidade, sessões e slots do nó. ```shell -cURL GET 'http://localhost:4444/status' +curl --request GET 'http://localhost:4444/status' ``` ### Deletar sessão @@ -25,7 +25,7 @@ A exclusão da sessão encerra a sessão do WebDriver, fecha o driver e o remove Qualquer solicitação usando o id de sessão removido ou reutilizando a instância do driver gerará um erro. ```shell -cURL --request DELETE 'http://localhost:4444/session/' +curl --request DELETE 'http://localhost:4444/session/' ``` ### Which URL should I use? @@ -42,7 +42,7 @@ A URL padrão para todos os modos acima é http://localhost:4444. ### Remover Nó -Para remover o Nó da Grid, use o comando cURL listado abaixo. +Para remover o Nó da Grid, use o comando curl listado abaixo. Ele não interrompe nenhuma sessão em andamento em execução nesse nó. O Node continua rodando como está, a menos que seja explicitamente eliminado. O Distribuidor não está mais ciente do Nó e, portanto, qualquer solicitação de nova sessão correspondente @@ -52,15 +52,15 @@ No modo Standalone, a URL do distribuidor é o endereço do servidor Standalone. No modo Hub-Node, a URL do Distribuidor é o endereço do servidor Hub. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` No modo totalmente distribuído, a URL é o endereço do servidor Router. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` Se nenhum segredo de registro foi configurado durante a configuração da Grid, use ```shell -cURL --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' ``` ### Drenar Nó @@ -73,15 +73,15 @@ No modo Standalone, a URL do distribuidor é o endereço do servidor Standalone. No modo Hub-Node, a URL do Distribuidor é o endereço do servidor Hub. ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` No modo totalmente distribuído, a URL é o endereço do servidor Router. ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` Se nenhum segredo de registro foi configurado durante a configuração da Grid, use ```shell -cURL --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' ``` ## Nó @@ -97,33 +97,33 @@ O distribuidor executa ping no status do Nó em intervalos regulares e atualiza O status inclui informações sobre disponibilidade, sessões e slots. ```shell -cURL --request GET 'http://localhost:5555/status' +curl --request GET 'http://localhost:5555/status' ``` ### Drenagem O Distribuidor passa o comando [drain](# drain-node) para o Nó apropriado identificado pelo ID do Nó. -Para drenar o Nó diretamente, use o comando cuRL listado abaixo. +Para drenar o Nó diretamente, use o comando curl listado abaixo. Ambos as rotas são válidas e produzem o mesmo resultado. Drenar termina as sessões em andamento antes de interromper o Nó. ```shell -cURL --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' ``` Se nenhum segredo de registro foi configurado durante a configuração da Grid, use ```shell -cURL --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' ``` ### Checar dono da sessão -Para verificar se uma sessão pertence a um Nó, use o comando cURL listado abaixo. +Para verificar se uma sessão pertence a um Nó, use o comando curl listado abaixo. ```shell -cURL --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' +curl --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' ``` Se nenhum segredo de registro foi configurado durante a configuração da Grid, use ```shell -cURL --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' +curl --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' ``` Ele retornará true se a sessão pertencer ao Nó, caso contrário, retornará false. @@ -134,11 +134,11 @@ A exclusão da sessão encerra a sessão do WebDriver, fecha o driver e o remove Qualquer solicitação usando o id de sessão removido ou reutilizando a instância do driver gerará um erro. ```shell -cURL --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' ``` Se nenhum segredo de registro foi configurado durante a configuração da Grid, use ```shell -cURL --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' ``` ## Fila de Sessão @@ -146,7 +146,7 @@ cURL --request DELETE 'http:///se/grid/node/session/' --he ### Limpar a Fila de Sessão A Fila de Sessão contém as novas solicitações de sessão. -Para limpar a fila, use o comando cURL listado abaixo. +Para limpar a fila, use o comando curl listado abaixo. Limpar a fila rejeita todas as solicitações na fila. Para cada solicitação, o servidor retorna uma resposta de erro ao respectivo cliente. O resultado do comando clear é o número total de solicitações excluídas. @@ -155,31 +155,31 @@ No modo Standalone, a URL Queue é o endereço do servidor Standalone. No modo Hub-Node, a URL do enfileirador é o endereço do servidor Hub. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` No modo totalmente distribuído, a URL do enfileirador é o endereço do servidor do Enfileirador de Sessões. ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` If no registration secret has been configured while setting up the Grid, then use ```shell -cURL --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' ``` ### Obter novos pedidos da Fila de Sessão Novos pedidos da Fila de Sessão contém os novos pedidos de sessão. -Para obter os pedidos na Fila, utiliza o comando cURL listado abaixo. +Para obter os pedidos na Fila, utiliza o comando curl listado abaixo. É retornado o número total de pedidos na Fila. No modo Standalone, a URL é a do servidor, em modo Grid, a URL será a do HUB. ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' ``` No modo totalmente distribuido, a URL da Fila é a porta do servidor de Fila. ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' diff --git a/website_and_docs/content/documentation/grid/advanced_features/endpoints.zh-cn.md b/website_and_docs/content/documentation/grid/advanced_features/endpoints.zh-cn.md index a11399844ff8..8e67ae00a270 100644 --- a/website_and_docs/content/documentation/grid/advanced_features/endpoints.zh-cn.md +++ b/website_and_docs/content/documentation/grid/advanced_features/endpoints.zh-cn.md @@ -18,7 +18,7 @@ Grid状态提供Grid的当前状态. 状态包括有关节点可用性、会话和插槽的信息. ```shell -cURL GET 'http://localhost:4444/status' +curl --request GET 'http://localhost:4444/status' ``` ### 删除会话 @@ -26,7 +26,7 @@ cURL GET 'http://localhost:4444/status' 删除会话会终止 WebDriver 会话、退出驱动程序并将其从活动会话映射中删除。任何使用删除的会话标识或重新使用驱动程序实例的请求都会出错。 ```shell -cURL --request DELETE 'http://localhost:4444/session/' +curl --request DELETE 'http://localhost:4444/session/' ``` ### 我应该使用哪一个URL? @@ -43,23 +43,23 @@ cURL --request DELETE 'http://localhost:4444/session/' ### 删除节点 -要从网格中删除节点,请使用下面列出的 cURL 命令。该命令不会停止正在该节点上运行的任何会话。除非显式终止, 否则节点将继续运行。分发器不再知道该节点,因此任何匹配的新会话请求都不会转发到该节点。 +要从网格中删除节点,请使用下面列出的 curl 命令。该命令不会停止正在该节点上运行的任何会话。除非显式终止, 否则节点将继续运行。分发器不再知道该节点,因此任何匹配的新会话请求都不会转发到该节点。 在 Standalone 模式下,分发器 URL 是独立服务器地址。 在 Hub-Node 模式下, 分发器 URL 是 Hub 服务器的地址。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` 在完全分布式模式下, URL是分发器的地址。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET: ' ``` 如果在设置Grid时未配置注册密码, 则使用 ```shell -cURL --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/distributor/node/' --header 'X-REGISTRATION-SECRET;' ``` ### 释放节点 @@ -70,15 +70,15 @@ cURL --request DELETE 'http:///se/grid/distributor/node/' - 在 Hub-Node 模式下, 分发器 URL 是 Hub 服务器的地址。 ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` 在完全分布式模式下, URL是分发服务器的地址。 ```shell -cURL --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:4444/se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET: ' ``` 如果在设置Grid时未配置注册密码, 则使用 ```shell -cURL --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/distributor/node//drain' --header 'X-REGISTRATION-SECRET;' ``` ## 节点 @@ -91,32 +91,32 @@ cURL --request POST 'http:///se/grid/distributor/node//drai 节点状态本质上是节点的健康检查。分发程序会定期 ping 节点状态,并相应地更新 Grid 模型。状态包括有关可用性、会话和插槽的信息。 ```shell -cURL --request GET 'http://localhost:5555/status' +curl --request GET 'http://localhost:5555/status' ``` ### 释放 -分发器将 [释放](#释放节点) 命令传递给由node-id标识的相应节点。要直接释放节点,请使用下面列出的cuRL命令。 +分发器将 [释放](#释放节点) 命令传递给由node-id标识的相应节点。要直接释放节点,请使用下面列出的curl命令。 两个端点都有效并产生相同的结果。释放会等待持续中的会话完成后才停止节点。 ```shell -cURL --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' +curl --request POST 'http://localhost:5555/se/grid/node/drain' --header 'X-REGISTRATION-SECRET: ' ``` 如果在设置Grid时未配置注册密码,则使用 ```shell -cURL --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' +curl --request POST 'http:///se/grid/node/drain' --header 'X-REGISTRATION-SECRET;' ``` ### 检查会话所有者 -要检查会话是否属于某一节点, 请使用下面列出的cURL命令. +要检查会话是否属于某一节点, 请使用下面列出的curl命令. ```shell -cURL --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' +curl --request GET 'http://localhost:5555/se/grid/node/owner/' --header 'X-REGISTRATION-SECRET: ' ``` 如果在设置Grid时未配置注册密码, 则使用 ```shell -cURL --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' +curl --request GET 'http:///se/grid/node/owner/' --header 'X-REGISTRATION-SECRET;' ``` 如果会话属于该节点, @@ -128,52 +128,52 @@ cURL --request GET 'http:///se/grid/node/owner/' --header 删除会话会终止 WebDriver 会话、退出驱动程序并将其从活动会话映射中删除。任何使用删除的会话标识或重新使用驱动程序实例的请求都会出错。 ```shell -cURL --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:5555/se/grid/node/session/' --header 'X-REGISTRATION-SECRET: ' ``` 如果在设置Grid时未配置注册密码, 则使用 ```shell -cURL --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/node/session/' --header 'X-REGISTRATION-SECRET;' ``` ## 新会话队列 ### 清除新会话队列 -新会话请求队列保存新会话请求。要清除队列,请使用下面列出的 cURL 命令。清除队列会拒绝队列中的所有请求。对于每个此类请求,服务器都会向相应的客户端返回错误响应。清除命令的结果是被删除请求的总数。 +新会话请求队列保存新会话请求。要清除队列,请使用下面列出的 curl 命令。清除队列会拒绝队列中的所有请求。对于每个此类请求,服务器都会向相应的客户端返回错误响应。清除命令的结果是被删除请求的总数。 在 Standalone 模式下, 队列URL是独立服务器的地址。 在 Hub-Node 模式下, 队列URL是集线器服务器的地址。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` 在完全分布式模式下, 队列URL是新会话队列服务器的地址。 ```shell -cURL --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' +curl --request DELETE 'http://localhost:4444/se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET: ' ``` 如果在设置Grid时未配置注册密码, 则使用 ```shell -cURL --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' +curl --request DELETE 'http:///se/grid/newsessionqueue/queue' --header 'X-REGISTRATION-SECRET;' ``` ### 获取新会话队列请求 新会话请求队列保存新会话请求。 要获取队列中的当前请求, -请使用下面列出的cURL命令。 +请使用下面列出的curl命令。 响应会返回队列中的请求总数以及请求内容。 在 Standalone 模式下, 队列URL是独立服务器的地址。 在 Hub-Node 模式下, 队列URL是集线器服务器的地址。 ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' ``` 在完全分布式模式下, 队列URL是新会话队列服务器的地址。 ```shell -cURL --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' +curl --request GET 'http://localhost:4444/se/grid/newsessionqueue/queue' diff --git a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.en.md b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.en.md index c8c0fc639813..78a686b2125c 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.en.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.en.md @@ -17,7 +17,7 @@ of emulating user interaction with the web platform. Instead, find the link using Selenium (and any required cookies) and pass it to a HTTP request library like -[libcurl](//curl.haxx.se/libcurl/). +[curl](https:////curl.se/). The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the diff --git a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.ja.md b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.ja.md index d0e6f03c10de..2f2b4ab54c0d 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.ja.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.ja.md @@ -11,7 +11,7 @@ aliases: [ Seleniumの管理下にあるブラウザーでリンクをクリックしてダウンロードを開始することは可能ですが、APIはダウンロードの進行状況を公開しないため、ダウンロードしたファイルのテストには理想的ではありません。 これは、ファイルのダウンロードは、Webプラットフォームとのユーザーインタラクションをエミュレートする重要な側面とは見なされないためです。 -代わりに、Selenium(および必要なCookie)を使用してリンクを見つけ、 [libcurl](//curl.haxx.se/libcurl/) などのHTTPリクエストライブラリに渡します。 +代わりに、Selenium(および必要なCookie)を使用してリンクを見つけ、 [curl](https://curl.se/) などのHTTPリクエストライブラリに渡します。 [HtmlUnitドライバー](https://github.com/SeleniumHQ/htmlunit-driver)は、 [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) インターフェイスを実装することで、 diff --git a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.pt-br.md b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.pt-br.md index 6d3d3080c005..3cc5f0a5be91 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.pt-br.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.pt-br.md @@ -17,7 +17,7 @@ de emular a interação do usuário com a plataforma da web. Em vez disso, encontre o link usando Selenium (e todos os cookies necessários) e passe este cookie para uma biblioteca de solicitação HTTP como -[libcurl](//curl.haxx.se/libcurl/). +[curl](https://curl.se/). O [driver HtmlUnit](https://github.com/SeleniumHQ/htmlunit-driver) pode baixar anexos acessando-os como fluxos de entrada, implementando o diff --git a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.zh-cn.md b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.zh-cn.md index 2b1fd1c792a6..47b28975a66b 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.zh-cn.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/file_downloads.zh-cn.md @@ -10,7 +10,7 @@ aliases: [ 虽然可以通过在Selenium的控制下单击浏览器的链接来开始下载, 但是API并不会暴露下载进度, 因此这是一种不理想的测试下载文件的方式. -因为下载文件并非模拟用户与Web平台交互的重要方面. 取而代之的是, 应使用Selenium(以及任何必要的cookie)查找链接, 并将其传递给例如[libcurl](//curl.haxx.se/libcurl/)这样的HTTP请求库. +因为下载文件并非模拟用户与Web平台交互的重要方面. 取而代之的是, 应使用Selenium(以及任何必要的cookie)查找链接, 并将其传递给例如[curl](//curl.se/)这样的HTTP请求库. [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) diff --git a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.en.md b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.en.md index f2467d933a5b..59d35eb79f32 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.en.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.en.md @@ -18,7 +18,7 @@ just to get to the page and traverse through the DOM. Instead of using WebDriver for this, you could save a ton of time -by executing a [curl](//curl.haxx.se/) command, +by executing a [curl](https://curl.se/) command, or using a library such as BeautifulSoup since these methods do not rely on creating a browser and navigating to a page. diff --git a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.ja.md b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.ja.md index 58b8b20f4a89..b4a6254ba37b 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.ja.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.ja.md @@ -12,5 +12,5 @@ aliases: [ WebDriverを使用してリンクをスパイダーすることは、実行できないためではなく、最も理想的なツールではないため明らかに推奨される方法ではありません。 WebDriverの起動には時間が必要であり、テストの記述方法によっては、ページに到達してDOMを通過するために数秒から1分かかる場合があります。 -このためにWebDriverを使用する代わりに、[curl](//curl.haxx.se/) コマンドを実行するか、BeautifulSoupなどのライブラリを使用することにより、これらの方法はブラウザーの作成やページへの移動に依存しないため、時間を大幅に節約できます。 +このためにWebDriverを使用する代わりに、[curl](https://curl.se/) コマンドを実行するか、BeautifulSoupなどのライブラリを使用することにより、これらの方法はブラウザーの作成やページへの移動に依存しないため、時間を大幅に節約できます。 このタスクにWebDriverを使用しないことで、時間を大幅に節約できます。 diff --git a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.pt-br.md b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.pt-br.md index 8bb2ce6008af..810fa6de0b31 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.pt-br.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.pt-br.md @@ -18,7 +18,7 @@ apenas para chegar à página e atravessar o DOM. Em vez de usar o WebDriver para isso, você poderia economizar muito tempo -executando um comando [curl](//curl.haxx.se/), +executando um comando [curl](https://curl.se/), ou usando uma biblioteca como BeautifulSoup uma vez que esses métodos não dependem em criar um navegador e navegar para uma página. diff --git a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.zh-cn.md b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.zh-cn.md index ac30f3efb1b5..0f0be9f539cf 100644 --- a/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.zh-cn.md +++ b/website_and_docs/content/documentation/test_practices/discouraged/link_spidering.zh-cn.md @@ -14,7 +14,7 @@ WebDriver需要一些时间来启动,并且可能要花几秒钟到一分钟 具体取决于测试的编写方式,仅仅是为了获取页面并遍历DOM. 除了使用WebDriver之外, -您还可以通过执行 [curl](//curl.haxx.se/) 命令或 +您还可以通过执行 [curl](https://curl.se/) 命令或 使用诸如BeautifulSoup之类的库来节省大量时间, 因为这些方法不依赖于创建浏览器和导航至页面. 通过不使用WebDriver可以节省大量时间.