Skip to content

Commit

Permalink
update wait documentation (#1358)[deploy site]
Browse files Browse the repository at this point in the history
* update wait documentation

* updates based on feedback and removing unnecessary explanations

* fix all double-parentheses links
  • Loading branch information
titusfortner committed Aug 4, 2023
1 parent 0f7af65 commit d1af4fe
Show file tree
Hide file tree
Showing 16 changed files with 638 additions and 1,635 deletions.
Expand Up @@ -14,7 +14,7 @@ There are only 5 basic commands that can be executed on an element:
* [send keys](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
* [clear](https://w3c.github.io/webdriver/#element-send-keys) (only applies to text fields and content editable elements)
* submit (only applies to form elements)
* select (see [Select List Elements]({{< ref "select_lists.md" >}}))
* select (see [Select List Elements]({{< ref "select_lists.md" >}})

## Additional validations

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

## Additional validations

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

## Additional validations

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

## 附加验证

Expand Down
@@ -1,7 +1,7 @@
---
title: "Working With Colors"
linkTitle: "Colors"
weight: 1
weight: 3
aliases: [
"/documentation/en/support_packages/working_with_colours/",
"/documentation/support_packages/working_with_colours/",
Expand Down
@@ -1,7 +1,7 @@
---
title: "色を扱う"
linkTitle: "色を扱う"
weight: 1
weight: 3
aliases: [
"/documentation/ja/support_packages/working_with_colours/",
"/ja/documentation/support_packages/working_with_colours/",
Expand Down
@@ -1,7 +1,7 @@
---
title: "Trabalhando com cores"
linkTitle: "Trabalhando com cores"
weight: 1
weight: 3
aliases: [
"/documentation/pt-br/support_packages/working_with_colours/",
"/pt-br/documentation/support_packages/working_with_colours/",
Expand Down
@@ -1,7 +1,7 @@
---
title: "同颜色一起工作"
linkTitle: "颜色"
weight: 1
weight: 3
aliases: [
"/documentation/zh-cn/support_packages/working_with_colours/",
"/zh-cn/documentation/support_packages/working_with_colours/",
Expand Down
@@ -0,0 +1,43 @@
---
title: "Waiting with Expected Conditions"
linkTitle: "Expected Conditions"
weight: 1
description: >
These are classes used to describe what needs to be waited for.
---

Expected Conditions are used with [Explicit Waits]({{< ref "../waits#explicit-waits" >}}).
Instead of defining the block of code to be executed with a _lambda_, an expected
conditions method can be created to represent common things that get waited on. Some
methods take locators as arguments, others take elements as arguments.

These methods can include conditions such as:

* element exists
* element is stale
* element is visible
* text is visible
* title contains specified value

{{< tabpane text=true langEqualsHeader=true >}}
{{% tab header="Java" %}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
{{< badge-code >}}
{{% /tab %}}
{{< tab header="Python" >}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
{{< /tab >}}
{{< tab header="Ruby" >}}
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}
@@ -0,0 +1,43 @@
---
title: "Waiting with Expected Conditions"
linkTitle: "Expected Conditions"
weight: 1
description: >
These are classes used to describe what needs to be waited for.
---

Expected Conditions are used with [Explicit Waits]({{< ref "../waits#explicit-waits" >}}).
Instead of defining the block of code to be executed with a _lambda_, an expected
conditions method can be created to represent common things that get waited on. Some
methods take locators as arguments, others take elements as arguments.

These methods can include conditions such as:

* element exists
* element is stale
* element is visible
* text is visible
* title contains specified value

{{< tabpane text=true langEqualsHeader=true >}}
{{% tab header="Java" %}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
{{< badge-code >}}
{{% /tab %}}
{{< tab header="Python" >}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
{{< /tab >}}
{{< tab header="Ruby" >}}
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}
@@ -0,0 +1,43 @@
[expected_conditions.ja.md](expected_conditions.ja.md)---
title: "Waiting with Expected Conditions"
linkTitle: "Expected Conditions"
weight: 1
description: >
These are classes used to describe what needs to be waited for.
---

Expected Conditions are used with [Explicit Waits]({{< ref "../waits#explicit-waits" >}}).
Instead of defining the block of code to be executed with a _lambda_, an expected
conditions method can be created to represent common things that get waited on. Some
methods take locators as arguments, others take elements as arguments.

These methods can include conditions such as:

* element exists
* element is stale
* element is visible
* text is visible
* title contains specified value

{{< tabpane text=true langEqualsHeader=true >}}
{{% tab header="Java" %}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
{{< badge-code >}}
{{% /tab %}}
{{< tab header="Python" >}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
{{< /tab >}}
{{< tab header="Ruby" >}}
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}
@@ -0,0 +1,43 @@
---
title: "Waiting with Expected Conditions"
linkTitle: "Expected Conditions"
weight: 1
description: >
These are classes used to describe what needs to be waited for.
---

Expected Conditions are used with [Explicit Waits]({{< ref "../waits#explicit-waits" >}}).
Instead of defining the block of code to be executed with a _lambda_, an expected
conditions method can be created to represent common things that get waited on. Some
methods take locators as arguments, others take elements as arguments.

These methods can include conditions such as:

* element exists
* element is stale
* element is visible
* text is visible
* title contains specified value

{{< tabpane text=true langEqualsHeader=true >}}
{{% tab header="Java" %}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html)
{{< badge-code >}}
{{% /tab %}}
{{< tab header="Python" >}}
[Expected Conditions Documentation](https://www.selenium.dev/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.expected_conditions.html)
{{< badge-code >}}
{{< /tab >}}
{{< tab header="CSharp" >}}
.NET stopped supporting Expected Conditions in Selenium 4 to minimize maintenance hassle and redundancy.
{{< /tab >}}
{{< tab header="Ruby" >}}
Ruby makes frequent use of blocks, procs and lambdas and does not need Expected Conditions classes
{{< /tab >}}
{{< tab header="JavaScript" >}}
{{< badge-code >}}
{{< /tab >}}
{{< tab header="Kotlin" >}}
{{< badge-code >}}
{{< /tab >}}
{{< /tabpane >}}

0 comments on commit d1af4fe

Please sign in to comment.