Skip to content

Commit 8eca186

Browse files
authored
update feature/expected_conditions (#1794)
* update feature/expected_conditions * update feature/expected_conditions
1 parent 4f7ac13 commit 8eca186

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
title: "Waiting with Expected Conditions"
3-
linkTitle: "Expected Conditions"
2+
title: "期望状态的等待"
3+
linkTitle: "期望状态"
44
weight: 1
55
description: >
6-
These are classes used to describe what needs to be waited for.
6+
本文档描述了一系列类, 这些类用于明确指定在测试中需要等待的各种条件.
77
---
88

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.
9+
期望状态与 [显示等待]({{< ref "../waits#explicit-waits" >}}) 一起使用.
10+
与其定义要使用 _lambda_ 执行的代码块,
11+
不如使用 _lambda_ 执行可以创建 Conditions 方法来表示等待的常见事物.
12+
有些方法将定位器作为参数, 有些方法将元素作为参数.
1313

14-
These methods can include conditions such as:
14+
这些方法可以包括以下条件:
1515

16-
* element exists
17-
* element is stale
18-
* element is visible
19-
* text is visible
20-
* title contains specified value
16+
* 元素存在
17+
* 元素已过期
18+
* 元素可见
19+
* 文本可见
20+
* 标题包含特定值
2121

2222
{{< tabpane text=true >}}
2323
{{% tab header="Java" %}}

0 commit comments

Comments
 (0)