Skip to content

Commit f9174d3

Browse files
committed
update wait documentation
1 parent 48a91b8 commit f9174d3

File tree

12 files changed

+687
-1496
lines changed

12 files changed

+687
-1496
lines changed

website_and_docs/content/documentation/webdriver/support_features/colors.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Working With Colors"
33
linkTitle: "Colors"
4-
weight: 1
4+
weight: 3
55
aliases: [
66
"/documentation/en/support_packages/working_with_colours/",
77
"/documentation/support_packages/working_with_colours/",

website_and_docs/content/documentation/webdriver/support_features/colors.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "色を扱う"
33
linkTitle: "色を扱う"
4-
weight: 1
4+
weight: 3
55
aliases: [
66
"/documentation/ja/support_packages/working_with_colours/",
77
"/ja/documentation/support_packages/working_with_colours/",

website_and_docs/content/documentation/webdriver/support_features/colors.pt-br.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Trabalhando com cores"
33
linkTitle: "Trabalhando com cores"
4-
weight: 1
4+
weight: 3
55
aliases: [
66
"/documentation/pt-br/support_packages/working_with_colours/",
77
"/pt-br/documentation/support_packages/working_with_colours/",

website_and_docs/content/documentation/webdriver/support_features/colors.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "同颜色一起工作"
33
linkTitle: "颜色"
4-
weight: 1
4+
weight: 3
55
aliases: [
66
"/documentation/zh-cn/support_packages/working_with_colours/",
77
"/zh-cn/documentation/support_packages/working_with_colours/",
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "Waiting with Expected Conditions"
3+
linkTitle: "Expected Conditions"
4+
weight: 1
5+
description: >
6+
These are classes used to describe what needs to be waited for.
7+
---
8+
9+
Expected Conditions are used with [Explicit Waits](({{< ref "waits#explicit-waits" >}})).
10+
Instead of defining the block of code to be executed with a _lambda_, an expected
11+
conditions method can be created to represent common things that get waited on. Some
12+
methods take locators as arguments, others take elements as arguments.
13+
14+
These methods can include conditions such as:
15+
16+
* element exists
17+
* element is stale
18+
* element is visible
19+
* text is visible
20+
* title contains specified value
21+
22+
{{< tabpane text=true langEqualsHeader=true >}}
23+
{{% tab header="Java" %}}
24+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
25+
{{< badge-code >}}
26+
{{% /tab %}}
27+
{{< tab header="Python" >}}
28+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
29+
{{< badge-code >}}
30+
{{< /tab >}}
31+
{{< tab header="CSharp" >}}
32+
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
33+
{{< /tab >}}
34+
{{< tab header="Ruby" >}}
35+
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
36+
{{< /tab >}}
37+
{{< tab header="JavaScript" >}}
38+
{{< badge-code >}}
39+
{{< /tab >}}
40+
{{< tab header="Kotlin" >}}
41+
{{< badge-code >}}
42+
{{< /tab >}}
43+
{{< /tabpane >}}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "Waiting with Expected Conditions"
3+
linkTitle: "Expected Conditions"
4+
weight: 1
5+
description: >
6+
These are classes used to describe what needs to be waited for.
7+
---
8+
9+
Expected Conditions are used with [Explicit Waits](({{< ref "waits#explicit-waits" >}})).
10+
Instead of defining the block of code to be executed with a _lambda_, an expected
11+
conditions method can be created to represent common things that get waited on. Some
12+
methods take locators as arguments, others take elements as arguments.
13+
14+
These methods can include conditions such as:
15+
16+
* element exists
17+
* element is stale
18+
* element is visible
19+
* text is visible
20+
* title contains specified value
21+
22+
{{< tabpane text=true langEqualsHeader=true >}}
23+
{{% tab header="Java" %}}
24+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
25+
{{< badge-code >}}
26+
{{% /tab %}}
27+
{{< tab header="Python" >}}
28+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
29+
{{< badge-code >}}
30+
{{< /tab >}}
31+
{{< tab header="CSharp" >}}
32+
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
33+
{{< /tab >}}
34+
{{< tab header="Ruby" >}}
35+
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
36+
{{< /tab >}}
37+
{{< tab header="JavaScript" >}}
38+
{{< badge-code >}}
39+
{{< /tab >}}
40+
{{< tab header="Kotlin" >}}
41+
{{< badge-code >}}
42+
{{< /tab >}}
43+
{{< /tabpane >}}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
[expected_conditions.ja.md](expected_conditions.ja.md)---
2+
title: "Waiting with Expected Conditions"
3+
linkTitle: "Expected Conditions"
4+
weight: 1
5+
description: >
6+
These are classes used to describe what needs to be waited for.
7+
---
8+
9+
Expected Conditions are used with [Explicit Waits](({{< ref "waits#explicit-waits" >}})).
10+
Instead of defining the block of code to be executed with a _lambda_, an expected
11+
conditions method can be created to represent common things that get waited on. Some
12+
methods take locators as arguments, others take elements as arguments.
13+
14+
These methods can include conditions such as:
15+
16+
* element exists
17+
* element is stale
18+
* element is visible
19+
* text is visible
20+
* title contains specified value
21+
22+
{{< tabpane text=true langEqualsHeader=true >}}
23+
{{% tab header="Java" %}}
24+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
25+
{{< badge-code >}}
26+
{{% /tab %}}
27+
{{< tab header="Python" >}}
28+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
29+
{{< badge-code >}}
30+
{{< /tab >}}
31+
{{< tab header="CSharp" >}}
32+
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
33+
{{< /tab >}}
34+
{{< tab header="Ruby" >}}
35+
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
36+
{{< /tab >}}
37+
{{< tab header="JavaScript" >}}
38+
{{< badge-code >}}
39+
{{< /tab >}}
40+
{{< tab header="Kotlin" >}}
41+
{{< badge-code >}}
42+
{{< /tab >}}
43+
{{< /tabpane >}}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
title: "Waiting with Expected Conditions"
3+
linkTitle: "Expected Conditions"
4+
weight: 1
5+
description: >
6+
These are classes used to describe what needs to be waited for.
7+
---
8+
9+
Expected Conditions are used with [Explicit Waits](({{< ref "waits#explicit-waits" >}})).
10+
Instead of defining the block of code to be executed with a _lambda_, an expected
11+
conditions method can be created to represent common things that get waited on. Some
12+
methods take locators as arguments, others take elements as arguments.
13+
14+
These methods can include conditions such as:
15+
16+
* element exists
17+
* element is stale
18+
* element is visible
19+
* text is visible
20+
* title contains specified value
21+
22+
{{< tabpane text=true langEqualsHeader=true >}}
23+
{{% tab header="Java" %}}
24+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
25+
{{< badge-code >}}
26+
{{% /tab %}}
27+
{{< tab header="Python" >}}
28+
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
29+
{{< badge-code >}}
30+
{{< /tab >}}
31+
{{< tab header="CSharp" >}}
32+
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
33+
{{< /tab >}}
34+
{{< tab header="Ruby" >}}
35+
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
36+
{{< /tab >}}
37+
{{< tab header="JavaScript" >}}
38+
{{< badge-code >}}
39+
{{< /tab >}}
40+
{{< tab header="Kotlin" >}}
41+
{{< badge-code >}}
42+
{{< /tab >}}
43+
{{< /tabpane >}}

0 commit comments

Comments
 (0)