A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SeleniumHQ/seleniumhq.github.io/commit/e19c298047dcd64b92a1e480809d1f32384e38f9 below:

Update Chinese translation of "multiple pages" (#1006) · SeleniumHQ/seleniumhq.github.io@e19c298 · GitHub

File tree Expand file treeCollapse file tree 6 files changed

+27

-30

lines changed

Filter options

Expand file treeCollapse file tree 6 files changed

+27

-30

lines changed Original file line number Diff line number Diff line change

@@ -3,7 +3,7 @@ title: "Selenium RC (Selenium 1)"

3 3

linkTitle: "Selenium 1"

4 4

weight: 2

5 5

description: >

6 -

The original version of Selenium

6 +

原始版本的Selenium

7 7

aliases: [

8 8

"/documentation/zh-cn/legacy_docs/selenium_rc/",

9 9

"/zh-cn/documentation/legacy/selenium_rc/"

Original file line number Diff line number Diff line change

@@ -3,5 +3,5 @@ title: "Selenium 2"

3 3

linkTitle: "Selenium 2"

4 4

weight: 4

5 5

description: >

6 -

Selenium 2 was a rewrite of Selenium 1 that was implemented with WebDriver code.

6 +

Selenium 2 是以实现了WebDriver代码重写的Selenium 1.

7 7

---

Original file line number Diff line number Diff line change

@@ -3,6 +3,6 @@ title: "Selenium 3"

3 3

linkTitle: "Selenium 3"

4 4

weight: 6

5 5

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所替代.

8 8

---

Original file line number Diff line number Diff line change

@@ -2,14 +2,13 @@

2 2

title: "浏览器"

3 3

linkTitle: "浏览器"

4 4

weight: 6

5 -

requiresTranslation: true

6 5

aliases: [

7 6

"/documentation/zh-cn/webdriver/browser_manipulation/",

8 7

"/zh-cn/documentation/webdriver/browser_manipulation/"

9 8

]

10 9

---

11 10 12 -

## Get browser information

11 +

## 获取浏览器信息

13 12 14 13

### 获取标题

15 14 Original file line number Diff line number Diff line change

@@ -2,12 +2,11 @@

2 2

title: "特定的Chromium浏览器Capabilities"

3 3

linkTitle: "Chromium"

4 4

weight: 4

5 -

needsTranslation: true

6 5

description: >-

7 6

这些capabilities基于特定的Chromium浏览器.

8 7

---

9 8 10 -

These Capabilities apply to:

9 +

这些Capabilities应用于:

11 10

* Chrome

12 11

* Chromium

13 12

* Edge

Original file line number Diff line number Diff line change

@@ -1,29 +1,28 @@

1 1

---

2 2

title: "关于网络元素的信息"

3 3

linkTitle: "信息"

4 -

needsTranslation: true

5 4

weight: 4

6 5

description: >

7 6

元素相关的知识.

8 7

---

9 8 10 -

There are a number of details you can query about a specific element.

9 +

您可以查询有关特定元素的许多详细信息.

11 10 12 -

## Is Displayed

11 +

## 是否显示

13 12 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.

18 17 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 +

并以值的形式返回.

27 26 28 27

{{< tabpane langEqualsHeader=true >}}

29 28

{{< tab header="Java" >}}

@@ -63,7 +62,7 @@ for element displayedness

63 62

{{< /alert-code >}}

64 63 65 64 66 -

## Is Element Selected

65 +

## 元素是否被选定

67 66 68 67

此方法确定是否 _已选择_ 引用的元素.

69 68

此方法广泛用于复选框, 单选按钮, 输入元素和选项元素.

@@ -117,7 +116,7 @@ val attr = driver.findElement(By.cssSelector("input[type='checkbox']:first-of-t

117 116

{{< /tab >}}

118 117

{{< /tabpane >}}

119 118 120 -

## Get Element TagName

119 +

## 获取元素标签名

121 120 122 121

此方法用于获取在当前浏览上下文中

123 122

具有焦点的被引用元素的

@@ -168,7 +167,7 @@ val attr = driver.findElement(By.cssSelector("h1")).getTagName()

168 167

{{< /tab >}}

169 168

{{< /tabpane >}}

170 169 171 -

## Get Element Rect

170 +

## 获取元素矩形

172 171 173 172

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

174 173

@@ -340,11 +339,11 @@ val text = driver.findElement(By.cssSelector("h1")).getText()

340 339

{{< /tab >}}

341 340

{{< /tabpane >}}

342 341 343 -

## Attributes and Properties

342 +

## 特性和属性

344 343 345 -

### Attribute

344 +

### 特性

346 345 347 -

### DOM Attribute

346 +

### DOM 特性

348 347 349 -

### DOM Property

348 +

### DOM 属性

350 349

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4