@@ -3,23 +3,17 @@ title: "Web element"
3
3
weight : 9
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 %}}
6
+ WebElement représente un élément DOM. Les WebElements peuvent être trouvés en recherchant
7
+ racine du document à l'aide d'une instance WebDriver ou en recherchant sous une autre
8
+ WebElement
11
9
12
- WebElement represents a DOM element. WebElements can be found by searching from the
13
- document root using a WebDriver instance, or by searching under another
14
- WebElement.
15
-
16
- WebDriver API provides built-in methods to find the WebElements which are
17
- based on different properties like ID, Name, Class, XPath, CSS Selectors, link Text, etc.
10
+ L'API WebDriver fournit des méthodes intégrées pour trouver les WebElements qui sont
11
+ basé sur différentes propriétés comme ID, nom, classe, XPath, sélecteurs CSS, texte de lien, etc.
18
12
19
13
## Find Element
20
14
21
- It is used to find an element and returns a first matching single WebElement reference ,
22
- that can be used for future element actions
15
+ Il est utilisé pour rechercher un élément et renvoie une première référence WebElement unique correspondante ,
16
+ qui peut être utilisé pour de futures actions d'élément
23
17
24
18
{{< code-tab >}}
25
19
{{< code-panel language="java" >}}
@@ -99,8 +93,8 @@ searchBox.sendKeys("webdriver")
99
93
100
94
## Find Elements
101
95
102
- Similar to 'Find Element', but returns a list of matching WebElements. To use a particular WebElement from the list ,
103
- you need to loop over the list of elements to perform action on selected element .
96
+ Similaire à "Rechercher un élément", mais renvoie une liste de WebElements correspondants. Pour utiliser un WebElement particulier de la liste ,
97
+ vous devez parcourir la liste des éléments pour effectuer une action sur l'élément sélectionné .
104
98
105
99
{{< code-tab >}}
106
100
{{< code-panel language="java" >}}
@@ -224,8 +218,8 @@ fun main() {
224
218
225
219
## Find Element From Element
226
220
227
- It is used to find a child element within the context of parent element .
228
- To achieve this, the parent WebElement is chained with 'findElement' to access child elements
221
+ Il est utilisé pour rechercher un élément enfant dans le contexte de l'élément parent .
222
+ Pour ce faire, le WebElement parent est chaîné avec 'findElement' pour accéder aux éléments enfants
229
223
230
224
{{< code-tab >}}
231
225
{{< code-panel language="java" >}}
@@ -299,8 +293,8 @@ searchBox.sendKeys("webdriver")
299
293
300
294
## Find Elements From Element
301
295
302
- It is used to find the list of matching child WebElements within the context of parent element .
303
- To achieve this, the parent WebElement is chained with ' findElements' to access child elements
296
+ Il est utilisé pour rechercher la liste des WebElements enfants correspondants dans le contexte de l'élément parent .
297
+ Pour ce faire, le WebElement parent est chaîné avec " findElements" pour accéder aux éléments enfants
304
298
305
299
{{< code-tab >}}
306
300
{{< code-panel language="java" >}}
@@ -437,7 +431,7 @@ namespace FindElementsFromElement {
437
431
438
432
## Get Active Element
439
433
440
- It is used to track (or) find DOM element which has the focus in the current browsing context .
434
+ Il est utilisé pour suivre (ou) trouver l'élément DOM qui a le focus dans le contexte de navigation actuel .
441
435
442
436
{{< code-tab >}}
443
437
{{< code-panel language="java" >}}
0 commit comments