Skip to content

Commit

Permalink
Update several pages (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaahong committed Nov 13, 2022
1 parent ee6a750 commit a269a6d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ Starting an Edge session with basic defined options looks like this:

## Internet Explorer Compatibility Mode

Microsoft Edge can be driven in "Internet Explorer Compatibility Mode," which uses
Microsoft Edge can be driven in "Internet Explorer Compatibility Mode", which uses
the Internet Explorer Driver classes in conjunction with Microsoft Edge.
Read the [Internet Explorer page]({{< ref "internet_explorer.md" >}}) for more details.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
title: "Edge specific functionality"
title: "Edge 特定功能"
linkTitle: "Edge"
weight: 5
description: >-
These are capabilities and features specific to Microsoft Edge browsers.
这些是特定于微软Edge浏览器的功能和特性.
---

Microsoft Edge is implemented with Chromium, with the earliest supported version of v79. Similar to Chrome,
the major version number of edgedriver must match the major version of the Edge browser.
微软Edge是用Chromium实现的,最早支持版本是v79.
与Chrome类似, Edge驱动的主版本号必须与Edge浏览器的主要版本匹配.

All capabilities and options found on the [Chrome page]({{< ref "chrome.md" >}}) work for Edge as well.
[Chrome 页面]({{< ref "chrome.md" >}}) 上找到的所有capabilities和选项也适用于Edge.

## Options
## 选项

Starting an Edge session with basic defined options looks like this:
使用基本定义的选项启动 Edge 会话如下所示:

{{< tabpane code=false langEqualsHeader=true >}}
{{< tab header="Java" >}}
Expand All @@ -36,8 +36,8 @@ Starting an Edge session with basic defined options looks like this:
{{< /tab >}}
{{< /tabpane >}}

## Internet Explorer Compatibility Mode
## Internet Explorer 兼容模式

Microsoft Edge can be driven in "Internet Explorer Compatibility Mode," which uses
the Internet Explorer Driver classes in conjunction with Microsoft Edge.
Read the [Internet Explorer page]({{< ref "internet_explorer.md" >}}) for more details.
微软Edge可以被"Internet Explorer兼容模式"驱动,
该模式使用Internet Explorer驱动类与微软Edge结合使用.
阅读 [Internet Explorer 页面]({{< ref "internet_explorer.md" >}}) 了解更多详情.
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
---
title: "Safari specific functionality"
title: "Safari 特定功能"
linkTitle: "Safari"
weight: 10
description: >-
These are capabilities and features specific to Apple Safari browsers.
这些是特定于Apple Safari浏览器的功能和特性.
aliases: [
"/zh-cn/documentation/capabilities/safari"
]
---

Unlike Chromium and Firefox drivers, the safaridriver is installed with the Operating System.
To enable automation on Safari, run the following command from the terminal:
与Chromium和Firefox驱动不同, safari驱动随操作系统安装.
要在 Safari 上启用自动化, 请从终端运行以下命令:

```shell
safaridriver --enable
```

## Options
## 选项

Capabilities common to all browsers are described on the [Options page]({{< ref "../drivers/options.md" >}}).
所有浏览器通用的Capabilities在[选项页]({{< ref "../drivers/options.md" >}}).

Capabilities unique to Safari can be found at Apple's page [About WebDriver for Safari](https://developer.apple.com/documentation/webkit/about_webdriver_for_safari#2957227)
Safari独有的Capabilities可以在Apple的页面[关于Safari的WebDriver](https://developer.apple.com/documentation/webkit/about_webdriver_for_safari#2957227) 上找到

Starting a Safari session with basic defined options looks like this:
使用基本定义的选项启动 Safari 会话如下所示:

{{< tabpane code=false langEqualsHeader=true >}}
{{< tab header="Java" >}}
Expand Down Expand Up @@ -50,5 +50,5 @@ Starting a Safari session with basic defined options looks like this:
{{< /tab >}}
{{< /tabpane >}}

### Mobile
Those looking to automate Safari on iOS should look to the [Appium project](//appium.io/).
### 移动端
那些希望在iOS上自动化Safari的人可以参考 [Appium project](//appium.io/).
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,10 @@ val text = driver.findElement(By.cssSelector("h1")).getText()
{{< /tab >}}
{{< /tabpane >}}

## Fetching Attributes or Properties
## 获取特性或属性

Fetches the run time value associated with a
DOM attribute. It returns the data associated
with the DOM attribute or property of the element.
获取与 DOM 属性关联的运行时的值.
它返回与元素的 DOM 特性或属性关联的数据.

{{< tabpane langEqualsHeader=true >}}
{{< tab header="Java" >}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Browser interactions"
linkTitle: "Interactions"
title: "浏览器交互"
linkTitle: "交互"
weight: 10
aliases: [
"/documentation/zh-cn/webdriver/browser_manipulation/",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "虚拟身份验证器"
linkTitle: "Virtual Authenticator"
linkTitle: "虚拟身份验证器"
weight: 16
description: >
A representation of the Web Authenticator model.
一种Web身份验证器模型的表示形式.
aliases: [
"/zh-cn/documentation/webdriver/virtual_authenticator/"
]
Expand Down

0 comments on commit a269a6d

Please sign in to comment.