Skip to content

Commit c32dee6

Browse files
harsha509manoj9788diemol
authored
Modify: Translating Webdriver -> support classes doc to french (#246) [deploy site]
* Modify: Removed unneccessary awaits for find element Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Add: Added ruby sample code for mouse actionsin support package Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Modify: Revamping the WebElement usage document Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Add: Adding findElements section to web_element document Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Modify: Update to stale PR #111 Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Modify: Removed desired capabilities and used FirefoxOptions in code sample Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Modify: Translated[EN-FR] Introduction-> selenium_proj_and_tools Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Modify: Translated[EN-FR] introduction-> types of testing Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Fix: Updating text to bold Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> * Modify: [EN]->[FR]: Translating webdriver-> support classes Signed-off-by: Sri Harsha <sri_harsha509@hotmail.com> Co-authored-by: Manoj Kumar <manoj9788@gmail.com> Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
1 parent 2c638ae commit c32dee6

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

docs_source_files/content/webdriver/support_classes.fr.md

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,32 @@ title: "Classes de support"
33
weight: 5
44
---
55

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-
WebDriver support classes are provided to simplify maintaining your code.
13-
They provide a nice abstraction to make modeling HTML element(s) as domain
14-
objects easier, also providing helper methods to make using such objects easy to
15-
reason about. We will learn about:
16-
17-
* Locator Strategies
18-
* Events
6+
Les classes de support WebDriver sont fournies pour simplifier
7+
la maintenance de votre code.Elles fournissent une belle
8+
abstraction pour faciliter la modélisation des éléments HTML en
9+
tant qu'objets de domaine, ainsi que des méthodes d'aide pour rendre
10+
l'utilisation de ces objets facile à raisonner.
11+
12+
* Stratégies de localisation
13+
* Événements
1914
* LoadableComponent
2015
* ThreadGuard
2116
* etc.
2217

23-
Let's Start:
18+
19+
Commençons:
2420

2521

2622
## **ThreadGuard**
2723
{{% notice info %}}
28-
This class is only available in the Java Binding
24+
Cette classe est uniquement disponible dans la liaison Java
2925
{{% /notice %}}
30-
ThreadGuard checks that a driver is called only from the same thread that created it.
31-
Threading issues especially when running tests in Parallel may have mysterious
32-
and hard to diagnose errors. Using this wrapper prevents this category of errors
33-
and will raise an exception when it happens.
26+
ThreadGuard vérifie qu'un pilote est appelé uniquement à partir du même thread qui l'a créé.
27+
Les problèmes de thread, en particulier lors de l'exécution de tests en parallèle, peuvent être mystérieux
28+
et difficile à diagnostiquer les erreurs. L'utilisation de ce wrapper empêche cette catégorie d'erreurs
29+
et lèvera une exception lorsque cela se produira.
3430

35-
The following example simulate a clash of threads:
31+
L'exemple suivant simule un choc de threads:
3632

3733
```java
3834
public class DriverClash {
@@ -57,22 +53,22 @@ public class DriverClash {
5753
}
5854
```
5955

60-
The result shown below:
56+
Le résultat ci-dessous:
6157
```text
6258
Exception in thread "Thread-1" org.openqa.selenium.WebDriverException:
6359
Thread safety error; this instance of WebDriver was constructed
6460
on thread main (id 1)and is being accessed by thread Thread-1 (id 24)
6561
This is not permitted and *will* cause undefined behaviour
6662
6763
```
68-
As seen in the example:
64+
Comme le montre l'exemple:
6965

70-
* `protectedDriver` Will be created in Main thread
71-
* We use Java `Runnable` to spin up a new process and a new `Thread` to run the process
72-
* Both `Thread` will clash because the Main Thread does not have `protectedDriver` in it's memory.
73-
* `ThreadGuard.protect` will throw an exception.
66+
* `protectedDriver` sera créé dans le thread principal
67+
* Nous utilisons Java `Runnable` pour lancer un nouveau processus et un nouveau `Thread` pour exécuter le processus
68+
* Les deux `Thread` s'affrontent car le Thread principal n'a pas` protectedDriver` dans sa mémoire.
69+
* `ThreadGuard.protect` lèvera une exception.
7470

75-
#### Note:
71+
#### Remarque:
7672

77-
This does not replace the need for using `ThreadLocal` to manage drivers when running parallel.
73+
Cela ne remplace pas la nécessité d'utiliser `ThreadLocal` pour gérer les pilotes lors de l'exécution en parallèle.
7874

0 commit comments

Comments
 (0)