File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
website_and_docs/content/documentation/webdriver/support_features Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- title : " Waiting with Expected Conditions "
3
- linkTitle : " Expected Conditions "
2
+ title : " 期望状态的等待 "
3
+ linkTitle : " 期望状态 "
4
4
weight : 1
5
5
description : >
6
- These are classes used to describe what needs to be waited for .
6
+ 本文档描述了一系列类, 这些类用于明确指定在测试中需要等待的各种条件 .
7
7
---
8
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 .
9
+ 期望状态与 [ 显示等待 ] ({{< ref "../waits#explicit-waits" >}}) 一起使用 .
10
+ 与其定义要使用 _ lambda_ 执行的代码块,
11
+ 不如使用 _ lambda _ 执行可以创建 Conditions 方法来表示等待的常见事物.
12
+ 有些方法将定位器作为参数, 有些方法将元素作为参数 .
13
13
14
- These methods can include conditions such as :
14
+ 这些方法可以包括以下条件 :
15
15
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
+ * 标题包含特定值
21
21
22
22
{{< tabpane text=true >}}
23
23
{{% tab header="Java" %}}
You can’t perform that action at this time.
0 commit comments