Skip to content

Commit d1af4fe

Browse files
authored
update wait documentation (#1358)[deploy site]
* update wait documentation * updates based on feedback and removing unnecessary explanations * fix all double-parentheses links
1 parent 0f7af65 commit d1af4fe

16 files changed

+638
-1635
lines changed

website_and_docs/content/documentation/webdriver/elements/interactions.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are only 5 basic commands that can be executed on an element:
1414
* [send keys](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
1515
* [clear](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
1616
* submit (only applies to form elements)
17-
* select (see [Select List Elements]({{< ref "select_lists.md" >}}))
17+
* select (see [Select List Elements]({{< ref "select_lists.md" >}})
1818

1919
## Additional validations
2020

website_and_docs/content/documentation/webdriver/elements/interactions.ja.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ There are only 5 basic commands that can be executed on an element:
1212
* [send keys](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
1313
* [clear](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
1414
* submit (only applies to form elements)
15-
* select (see [Select List Elements]({{< ref "select_lists.md" >}}))
15+
* select (see [Select List Elements]({{< ref "select_lists.md" >}})
1616

1717
## Additional validations
1818

website_and_docs/content/documentation/webdriver/elements/interactions.pt-br.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ There are only 5 basic commands that can be executed on an element:
1212
* [send keys](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
1313
* [clear](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
1414
* submit (only applies to form elements)
15-
* select (see [Select List Elements]({{< ref "select_lists.md" >}}))
15+
* select (see [Select List Elements]({{< ref "select_lists.md" >}})
1616

1717
## Additional validations
1818

website_and_docs/content/documentation/webdriver/elements/interactions.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: >
1212
* [发送键位](https://w3c.github.io/webdriver/#element-send-keys) (仅适用于文本字段和内容可编辑元素)
1313
* [清除](https://w3c.github.io/webdriver/#element-send-keys) (仅适用于文本字段和内容可编辑元素)
1414
* 提交 (仅适用于表单元素)
15-
* 选择 (参见 [选择列表元素]({{< ref "select_lists.md" >}}))
15+
* 选择 (参见 [选择列表元素]({{< ref "select_lists.md" >}})
1616

1717
## 附加验证
1818

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

+1-1
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

+1-1
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

+1-1
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

+1-1
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/",
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 >}}
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 >}}
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 >}}
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)