Skip to content

Commit f42d875

Browse files
authored
Update Chinese translation of "keyboard" and "driver_specific_capabilities" (SeleniumHQ#477) [deploy site]
- webdriver/keyboard.zh-cn.md - driver_idiosyncrasies/driver_specific_capabilities.zh-cn.md
1 parent 03dcde9 commit f42d875

File tree

2 files changed

+47
-43
lines changed

2 files changed

+47
-43
lines changed

docs_source_files/content/driver_idiosyncrasies/driver_specific_capabilities.zh-cn.md

+46-41
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,16 @@ val driver = RemoteWebDriver(options)
150150

151151
### ensureCleanSession
152152

153-
When set to `true`, this capability clears the _Cache,
154-
Browser History and Cookies_ for all running instances
155-
of InternetExplorer including those started manually
156-
or by the driver. By default, it is set to `false`.
153+
设置为 `true`时,
154+
此功能将清除InternetExplorer所有正在运行实例的
155+
_缓存, 浏览器历史记录和Cookies_
156+
(包括手动启动或由驱动程序启动的实例) .
157+
默认情况下,此设置为 `false`.
157158

158-
Using this capability will cause performance drop while
159-
launching the browser, as the driver will wait until the cache
160-
gets cleared before launching the IE browser.
159+
使用此功能将导致启动浏览器时性能下降,
160+
因为驱动程序将等待直到缓存清除后再启动IE浏览器.
161161

162-
This capability accepts a Boolean value as parameter.
162+
此功能接受一个布尔值作为参数.
163163

164164
{{< code-tab >}}
165165
{{< code-panel language="java" >}}
@@ -205,11 +205,12 @@ val driver = RemoteWebDriver(options)
205205

206206
### ignoreZoomSetting
207207

208-
InternetExplorer driver expects the browser zoom level to be 100%,
209-
else the driver will throw an exception. This default behaviour
210-
can be disabled by setting the _ignoreZoomSetting_ to _true_.
208+
InternetExplorer驱动程序期望浏览器的缩放级别为100%,
209+
否则驱动程序将可能抛出异常.
210+
通过将 _ignoreZoomSetting_ 设置为 _true_,
211+
可以禁用此默认行为.
211212

212-
This capability accepts a Boolean value as parameter.
213+
此功能接受一个布尔值作为参数.
213214

214215
{{< code-tab >}}
215216
{{< code-panel language="java" >}}
@@ -255,21 +256,21 @@ val driver = RemoteWebDriver(options)
255256

256257
### ignoreProtectedModeSettings
257258

258-
Whether to skip the _Protected Mode_ check while launching
259-
a new IE session.
259+
启动新的IE会话时是否跳过 _保护模式_ 检查.
260260

261-
If not set and _Protected Mode_ settings are not same for
262-
for all zones, an exception will be thrown by the driver.
261+
如果未设置,
262+
并且所有区域的 _保护模式_ 设置都不同,
263+
则驱动程序将可能引发异常.
263264

264-
If capability is set to `true`, tests may
265-
become flaky, unresponsive, or browsers may hang.
266-
However, this is still by far a second-best choice,
267-
and the first choice should *always* be to actually
268-
set the Protected Mode settings of each zone manually.
269-
If a user is using this property,
270-
only a "best effort" at support will be given.
265+
如果将功能设置为 `true`,
266+
则测试可能会变得不稳定, 无响应, 或者浏览器可能会挂起.
267+
但是, 到目前为止,
268+
这仍然是第二好的选择,
269+
并且第一选择应该 *始终* 是手动实际设置每个区域的保护模式设置.
270+
如果用户正在使用此属性,
271+
则只会给予 "尽力而为" 的支持.
271272

272-
This capability accepts a Boolean value as parameter.
273+
此功能接受一个布尔值作为参数.
273274

274275
{{< code-tab >}}
275276
{{< code-panel language="java" >}}
@@ -315,10 +316,10 @@ val driver = RemoteWebDriver(options)
315316

316317
### silent
317318

318-
When set to `true`, this capability suppresses the
319-
diagnostic output of the IEDriverServer.
319+
设置为 `true`时,
320+
此功能将禁止IEDriverServer的诊断输出.
320321

321-
This capability accepts a Boolean value as parameter.
322+
此功能接受一个布尔值作为参数.
322323

323324
{{< code-tab >}}
324325
{{< code-panel language="java" >}}
@@ -384,22 +385,26 @@ fun main() {
384385
{{< / code-panel >}}
385386
{{< / code-tab >}}
386387

387-
### IE Command-Line Options
388+
### IE 命令行选项
388389

389-
Internet Explorer includes several command-line options
390-
that enable you to troubleshoot and configure the browser.
390+
Internet Explorer包含几个命令行选项,
391+
使您可以进行故障排除和配置浏览器.
391392

392-
The following describes few supported command-line options
393+
下面介绍了一些受支持的命令行选项
393394

394-
* _-private_ : Used to start IE in private browsing mode. This works for IE 8 and later versions.
395+
* _-private_ : 用于在私有浏览模式下启动IE.
396+
这适用于IE 8和更高版本.
395397

396-
* _-k_ : Starts Internet Explorer in kiosk mode.
397-
The browser opens in a maximized window that does not display the address bar, the navigation buttons, or the status bar.
398+
* _-k_ : 在kiosk模式下启动Internet Explorer.
399+
浏览器在一个最大化的窗口中打开,
400+
该窗口不显示地址栏, 导航按钮或状态栏.
398401

399-
* _-extoff_ : Starts IE in no add-on mode.
400-
This option specifically used to troubleshoot problems with browser add-ons. Works in IE 7 and later versions.
402+
* _-extoff_ : 在无附加模式下启动IE.
403+
此选项专门用于解决浏览器加载项问题.
404+
在IE 7和更高版本中均可使用.
401405

402-
Note: __forceCreateProcessApi__ should to enabled in-order for command line arguments to work.
406+
注意: __forceCreateProcessApi__
407+
应该启用命令行参数才能正常工作.
403408

404409
{{< code-tab >}}
405410
{{< code-panel language="java" >}}
@@ -503,11 +508,11 @@ fun main() {
503508

504509
### forceCreateProcessApi
505510

506-
Forces launching Internet Explorer
507-
using the CreateProcess API. The default value is false.
511+
强制使用CreateProcess API启动Internet Explorer.
512+
默认值为false.
508513

509-
For IE 8 and above, this option requires the
510-
"TabProcGrowth" registry value to be set to 0.
514+
对于IE 8及更高版本,
515+
此选项要求将 "TabProcGrowth" 注册表值设置为0.
511516

512517
{{< code-tab >}}
513518
{{< code-panel language="java" >}}

docs_source_files/content/webdriver/keyboard.zh-cn.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Keyboard代表一个键盘事件. Keyboard操作通过使用底层接口允许
88
## sendKeys
99

1010
即使遇到修饰符键序列, sendKeys也会在DOM元素中键入键序列.
11-
[Here](https://www.w3.org/TR/webdriver/#keyboard-actions) are the list of
12-
possible keystrokes that WebDriver Supports.
11+
[这里](https://www.w3.org/TR/webdriver/#keyboard-actions) 是WebDriver能够支持的键位列表.
1312

1413
{{< code-tab >}}
1514
{{< code-panel language="java" >}}

0 commit comments

Comments
 (0)