@@ -3,75 +3,67 @@ title: "Le serveur Remote WebDriver"
3
3
weight : 1
4
4
---
5
5
6
- {{% notice info %}}
7
- <i class =" fas fa-language " ></i > Page being translated from
8
- English to French. Do you speak French? Help us to translate
9
- it by sending us pull requests!
10
- {{% /notice %}}
11
-
12
- The server will always run on the machine with the browser you want to
13
- test. The server can be used either from the command line or through code
6
+ Le serveur fonctionnera toujours sur la machine avec le navigateur que vous souhaitez
7
+ tester. Le serveur peut être utilisé à partir de la ligne de commande ou via du code
14
8
configuration.
15
9
10
+ ## Démarrage du serveur à partir de la ligne de commande
16
11
17
- ## Starting the server from the command line
18
-
19
- Once you have downloaded ` selenium-server-standalone-{VERSION}.jar ` ,
20
- place it on the computer with the browser you want to test. Then, from
21
- the directory with the jar, run the following:
12
+ Une fois que vous avez téléchargé ` selenium-server-standalone-{VERSION}.jar ` ,
13
+ placez-le sur l'ordinateur avec le navigateur que vous souhaitez tester. Ensuite, à partir de
14
+ le répertoire avec le pot, exécutez ce qui suit:
22
15
23
16
``` shell
24
17
java -jar selenium-server-standalone-{VERSION}.jar
25
18
```
26
19
27
- ## Considerations for running the server
28
-
29
- The caller is expected to terminate each session properly, calling
30
- either ` Selenium#stop() ` or ` WebDriver#quit ` .
20
+ ## Considérations pour exécuter le serveur
31
21
32
- The selenium-server keeps in-memory logs for each ongoing session,
33
- which are cleared when ` Selenium#stop() ` or ` WebDriver#quit ` is called. If
34
- you forget to terminate these sessions, your server may leak memory. If
35
- you keep extremely long-running sessions, you will probably need to
36
- stop/quit every now and then (or increase memory with -Xmx jvm option).
22
+ L’appelant doit terminer correctement chaque session, appelant
23
+ soit ` Selenium#stop() ` ou ` WebDriver#quit ` .
37
24
25
+ Le 'Selenium-Server' conserve des journaux en mémoire pour chaque session en cours,
26
+ qui sont effacés lorsque ` Selenium#stop() ` ou ` WebDriver#quit ` est appelé. Si
27
+ vous oubliez de mettre fin à ces sessions, votre serveur peut perdre de la mémoire. Si
28
+ vous gardez des sessions extrêmement longues, vous devrez probablement
29
+ arrêtez/quittez de temps en temps (ou augmentez la mémoire avec l'option -Xmx jvm).
38
30
39
- ## Timeouts (from version 2.21)
31
+ ## Timeouts (à partir de la version 2.21)
40
32
41
- The server has two different timeouts, which can be set as follows :
33
+ Le serveur a deux délais d'expiration différents, qui peuvent être définis comme suit :
42
34
43
35
``` shell
44
36
java -jar selenium-server-standalone-{VERSION}.jar -timeout=20 -browserTimeout=60
45
37
```
46
38
47
39
* browserTimeout
48
- * Controls how long the browser is allowed to hang (value in seconds ).
40
+ * Contrôle la durée pendant laquelle le navigateur est autorisé à se bloquer (valeur en secondes ).
49
41
* timeout
50
- * Controls how long the client is allowed to be gone
51
- before the session is reclaimed (value in seconds ).
52
-
53
- The system property ` selenium.server.session.timeout `
54
- is no longer supported as of 2.21.
55
-
56
- Please note that the ` browserTimeout `
57
- is intended as a backup timeout mechanism
58
- when the ordinary timeout mechanism fails ,
59
- which should be used mostly in grid/server environments
60
- to ensure that crashed/lost processes do not stay around for too long ,
61
- polluting the runtime environment .
62
-
63
-
64
- ## Configuring the server programmatically
65
-
66
- In theory, the process is as simple as mapping the ` DriverServlet ` to
67
- a URL, but it's also possible to host the page in a lightweight
68
- container, such as Jetty configured entirely in code. Steps to do this
69
- follow.
70
-
71
- Download the ` selenium-server.zip ` and unpack. Put the JARs on the
72
- CLASSPATH. Create a new class called ` AppServer ` . Here, I'm using
73
- Jetty, so you'll need to [ download ] ( //www.eclipse.org/jetty/download.html )
74
- that as well :
42
+ * Contrôle la durée pendant laquelle le client est autorisé à partir
43
+ avant la récupération de la session (valeur en secondes ).
44
+
45
+ La propriété système ` selenium.server.session.timeout `
46
+ n'est plus pris en charge à partir de la version 2.21.
47
+
48
+ Veuillez noter que le ` browserTimeout `
49
+ est conçu comme un mécanisme de temporisation de sauvegarde
50
+ lorsque le mécanisme de temporisation ordinaire échoue ,
51
+ qui devrait être utilisé principalement dans des environnements de grille/serveur
52
+ pour garantir que les processus bloqués/perdus ne restent pas trop longtemps ,
53
+ polluant l'environnement d'exécution .
54
+
55
+ ## Configuration du serveur par programmation
56
+
57
+ En théorie, le processus est aussi simple que de mapper le ` DriverServlet ` à
58
+ une URL, mais il est également possible d'héberger la page dans un format léger
59
+ conteneur, tel que Jetty configuré entièrement en code. Étapes à suivre pour ce faire
60
+ suivre.
61
+
62
+ * Téléchargez ` selenium-server.zip ` et décompressez.
63
+ * Placez les JAR sur le CLASSPATH.
64
+ * Créez une nouvelle classe appelée ` AppServer ` . Ici, j'utilise
65
+ Jetty, vous devrez donc [ télécharger ] ( //www.eclipse.org/jetty/download.html )
66
+ cela aussi :
75
67
76
68
``` java
77
69
import org.mortbay.jetty.Connector ;
0 commit comments