Skip to content

Commit e19c298

Browse files
authored
Update Chinese translation of "multiple pages" (#1006)
1 parent 83568d4 commit e19c298

File tree

6 files changed

+27
-30
lines changed

6 files changed

+27
-30
lines changed

website_and_docs/content/documentation/legacy/selenium_1.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Selenium RC (Selenium 1)"
33
linkTitle: "Selenium 1"
44
weight: 2
55
description: >
6-
The original version of Selenium
6+
原始版本的Selenium
77
aliases: [
88
"/documentation/zh-cn/legacy_docs/selenium_rc/",
99
"/zh-cn/documentation/legacy/selenium_rc/"

website_and_docs/content/documentation/legacy/selenium_2/_index.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ title: "Selenium 2"
33
linkTitle: "Selenium 2"
44
weight: 4
55
description: >
6-
Selenium 2 was a rewrite of Selenium 1 that was implemented with WebDriver code.
6+
Selenium 2 是以实现了WebDriver代码重写的Selenium 1.
77
---

website_and_docs/content/documentation/legacy/selenium_3/_index.zh-cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title: "Selenium 3"
33
linkTitle: "Selenium 3"
44
weight: 6
55
description: >
6-
Selenium 3 was the implementation of WebDriver without the Selenium RC Code.
7-
It has since been replaced with Selenium 4, which implements the W3C WebDriver specification.
6+
Selenium 3是摒除了Selenium RC代码的WebDriver实现.
7+
其已被实现了W3C WebDriver规范的Selenium 4所替代.
88
---

website_and_docs/content/documentation/webdriver/browser/_index.zh-cn.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
title: "浏览器"
33
linkTitle: "浏览器"
44
weight: 6
5-
requiresTranslation: true
65
aliases: [
76
"/documentation/zh-cn/webdriver/browser_manipulation/",
87
"/zh-cn/documentation/webdriver/browser_manipulation/"
98
]
109
---
1110

12-
## Get browser information
11+
## 获取浏览器信息
1312

1413
### 获取标题
1514

website_and_docs/content/documentation/webdriver/capabilities/chromium.zh-cn.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
title: "特定的Chromium浏览器Capabilities"
33
linkTitle: "Chromium"
44
weight: 4
5-
needsTranslation: true
65
description: >-
76
这些capabilities基于特定的Chromium浏览器.
87
---
98

10-
These Capabilities apply to:
9+
这些Capabilities应用于:
1110
* Chrome
1211
* Chromium
1312
* Edge

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

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
---
22
title: "关于网络元素的信息"
33
linkTitle: "信息"
4-
needsTranslation: true
54
weight: 4
65
description: >
76
元素相关的知识.
87
---
98

10-
There are a number of details you can query about a specific element.
9+
您可以查询有关特定元素的许多详细信息.
1110

12-
## Is Displayed
11+
## 是否显示
1312

14-
This method is used to check if the connected Element is
15-
displayed on a webpage. Returns a `Boolean` value,
16-
True if the connected element is displayed in the current
17-
browsing context else returns false.
13+
此方法用于检查连接的元素是否正确
14+
显示在网页上. 返回一个 `Boolean` 值,
15+
如果连接的元素显示在当前的浏览器上下文中, 则为True
16+
否则返回false.
1817

19-
This functionality is [mentioned in](https://w3c.github.io/webdriver/#element-displayedness), but not defined by
20-
the w3c specification due to the
21-
[impossibility of covering all potential conditions](https://www.youtube.com/watch?v=hTa1KI6fQpg).
22-
As such, Selenium cannot expect drivers to implement
23-
this functionality directly, and now relies on
24-
executing a large JavaScript function directly.
25-
This function makes many approximations about an element's
26-
nature and relationship in the tree to return a value.
18+
此功能[提及于](https://w3c.github.io/webdriver/#element-displayedness),
19+
但是未定义于w3c规范中,
20+
因为[无法覆盖所有潜在条件](https://www.youtube.com/watch?v=hTa1KI6fQpg).
21+
因此,Selenium不能期望驱动程序
22+
直接实现这种功能,现在依赖于
23+
直接执行大量JavaScript函数.
24+
此函数界定了元素树中的许多本身属性以及关系,
25+
并以值的形式返回.
2726

2827
{{< tabpane langEqualsHeader=true >}}
2928
{{< tab header="Java" >}}
@@ -63,7 +62,7 @@ for element displayedness
6362
{{< /alert-code >}}
6463

6564

66-
## Is Element Selected
65+
## 元素是否被选定
6766

6867
此方法确定是否 _已选择_ 引用的元素.
6968
此方法广泛用于复选框, 单选按钮, 输入元素和选项元素.
@@ -117,7 +116,7 @@ val attr = driver.findElement(By.cssSelector("input[type='checkbox']:first-of-t
117116
{{< /tab >}}
118117
{{< /tabpane >}}
119118

120-
## Get Element TagName
119+
## 获取元素标签名
121120

122121
此方法用于获取在当前浏览上下文中
123122
具有焦点的被引用元素的
@@ -168,7 +167,7 @@ val attr = driver.findElement(By.cssSelector("h1")).getTagName()
168167
{{< /tab >}}
169168
{{< /tabpane >}}
170169

171-
## Get Element Rect
170+
## 获取元素矩形
172171

173172
用于获取参考元素的尺寸和坐标.
174173

@@ -340,11 +339,11 @@ val text = driver.findElement(By.cssSelector("h1")).getText()
340339
{{< /tab >}}
341340
{{< /tabpane >}}
342341

343-
## Attributes and Properties
342+
## 特性和属性
344343

345-
### Attribute
344+
### 特性
346345

347-
### DOM Attribute
346+
### DOM 特性
348347

349-
### DOM Property
348+
### DOM 属性
350349

0 commit comments

Comments
 (0)