-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
update wait documentation #1358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
website_and_docs/content/documentation/webdriver/support_features/colors.en.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
website_and_docs/content/documentation/webdriver/support_features/colors.ja.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
website_and_docs/content/documentation/webdriver/support_features/colors.pt-br.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
website_and_docs/content/documentation/webdriver/support_features/colors.zh-cn.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
...docs/content/documentation/webdriver/support_features/expected_conditions.en.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 >}} |
43 changes: 43 additions & 0 deletions
...docs/content/documentation/webdriver/support_features/expected_conditions.ja.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 >}} |
43 changes: 43 additions & 0 deletions
...s/content/documentation/webdriver/support_features/expected_conditions.pt-br.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 >}} |
43 changes: 43 additions & 0 deletions
...s/content/documentation/webdriver/support_features/expected_conditions.zh-cn.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 >}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.