Skip to content

Commit 37bcb93

Browse files
alaahongharsha509
andauthored
Add Chinese translation of "gmail_email_and_facebook_logins" (#369)
* Add Chinese translation of "gmail_email_and_facebook_logins" - worst_practices/gmail_email_and_facebook_logins.zh-cn.md * Add Chinese translation of "gmail_email_and_facebook_logins" and revise WebDriver spelling - worst_practices/gmail_email_and_facebook_logins.zh-cn.md - worst_practices/gmail_email_and_facebook_logins.de.md - worst_practices/gmail_email_and_facebook_logins.en.md - worst_practices/gmail_email_and_facebook_logins.es.md - worst_practices/gmail_email_and_facebook_logins.fr.md - worst_practices/gmail_email_and_facebook_logins.ja.md - worst_practices/gmail_email_and_facebook_logins.ko.md - worst_practices/gmail_email_and_facebook_logins.nl.md Revise webdriver as WebDriver Co-authored-by: Sri Harsha <[email protected]>
1 parent 9b43595 commit 37bcb93

8 files changed

+27
-35
lines changed

docs_source_files/content/worst_practices/gmail_email_and_facebook_logins.de.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ are more fragile and unreliable.
3333
WebDriver implementations that are
3434
[W3C conformant](//w3c.github.io/webdriver/webdriver-spec.html)
3535
also annotate the `navigator` object
36-
with a `webdriver` property
36+
with a `WebDriver` property
3737
so that Denial of Service attacks can be mitigated.

docs_source_files/content/worst_practices/gmail_email_and_facebook_logins.en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ are more fragile and unreliable.
2828
WebDriver implementations that are
2929
[W3C conformant](//w3c.github.io/webdriver/webdriver-spec.html)
3030
also annotate the `navigator` object
31-
with a `webdriver` property
31+
with a `WebDriver` property
3232
so that Denial of Service attacks can be mitigated.

docs_source_files/content/worst_practices/gmail_email_and_facebook_logins.es.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ are more fragile and unreliable.
3434
WebDriver implementations that are
3535
[W3C conformant](//w3c.github.io/webdriver/webdriver-spec.html)
3636
also annotate the `navigator` object
37-
with a `webdriver` property
37+
with a `WebDriver` property
3838
so that Denial of Service attacks can be mitigated.

docs_source_files/content/worst_practices/gmail_email_and_facebook_logins.fr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ are more fragile and unreliable.
3434
WebDriver implementations that are
3535
[W3C conformant](//w3c.github.io/webdriver/webdriver-spec.html)
3636
also annotate the `navigator` object
37-
with a `webdriver` property
37+
with a `WebDriver` property
3838
so that Denial of Service attacks can be mitigated.

docs_source_files/content/worst_practices/gmail_email_and_facebook_logins.ja.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ APIの使用は少し大変な作業のように思えるかもしれません
1515
テストの任意の時点でWebDriverを使用してサードパーティのサイトにログインすると、テストが長くなるため、テストが失敗するリスクが高くなります。
1616
一般的な経験則として、テストが長くなるほど脆弱で信頼性が低くなります。
1717

18-
[W3C準拠](//w3c.github.io/webdriver/webdriver-spec.html) のWebDriver実装は、サービス拒否攻撃を軽減できるように、`navigator`オブジェクトに`webdriver`プロパティで注釈を付けます。
18+
[W3C準拠](//w3c.github.io/webdriver/webdriver-spec.html) のWebDriver実装は、サービス拒否攻撃を軽減できるように、`navigator`オブジェクトに`WebDriver`プロパティで注釈を付けます。

docs_source_files/content/worst_practices/gmail_email_and_facebook_logins.ko.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ weight: 4
1616
테스트 실패의 위험이 증가한다. 일반적인 경험의 법칙은 긴 테스트가 더 취약하고 신뢰할 수 없다는 것이다.
1717

1818
WebDriver 구현[W3C conformant]//w3c.github.io/webdriver/webdriver-spec.html)
19-
또한 서비스 거부 공격이 완화될 수 있도록 `웹 드라이버` 속성으로 `navigator` 물체에 주석을 달아야 한다.
19+
또한 서비스 거부 공격이 완화될 수 있도록 `WebDriver` 속성으로 `navigator` 물체에 주석을 달아야 한다.

docs_source_files/content/worst_practices/gmail_email_and_facebook_logins.nl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ are more fragile and unreliable.
3434
WebDriver implementations that are
3535
[W3C conformant](//w3c.github.io/webdriver/webdriver-spec.html)
3636
also annotate the `navigator` object
37-
with a `webdriver` property
37+
with a `WebDriver` property
3838
so that Denial of Service attacks can be mitigated.
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
11
---
2-
title: "Gmail, email and Facebook logins"
2+
title: "Gmail, email Facebook 登录"
33
menuTitle: "Gmail, email and Facebook"
44
weight: 4
55
---
66

7-
{{% notice info %}}
8-
<i class="fas fa-language"></i> 页面需要从英语翻译为简体中文。
9-
您熟悉英语与简体中文吗?帮助我们翻译它,通过 pull requests 给我们!
10-
{{% /notice %}}
117

12-
For multiple reasons, logging into sites like Gmail and Facebook
13-
using WebDriver is not recommended.
14-
Aside from being against the usage terms for these sites
15-
(where you risk having the account shut down),
16-
it is slow and unreliable.
8+
由于多种原因, 不建议使用WebDriver登录Gmail和Facebook等网站.
9+
除了违反这些网站的使用条款之外 (您可能会面临帐户被关闭的风险) ,
10+
还有其运行速度缓慢且不可靠的因素.
1711

18-
The ideal practice is to use the APIs that email providers offer,
19-
or in the case of Facebook the developer tools service
20-
which exposes an API for creating test accounts, friends and so forth.
21-
Although using an API might seem like a bit of extra hard work,
22-
you will be paid back in speed, reliability, and stability.
23-
The API is also unlikely to change
24-
whereas webpages and HTML locators change often
25-
and require you to update your test framework.
2612

27-
Logging in to third party sites using WebDriver
28-
at any point of your test increases the risk
29-
of your test failing because it makes your test longer.
30-
A general rule of thumb is that longer tests
31-
are more fragile and unreliable.
13+
理想的做法是使用电子邮件供应商提供的API,
14+
或者对于Facebook, 使用开发者工具的服务,
15+
该服务是被用于创建测试帐户、朋友等内容的API.
16+
尽管使用API可能看起来有些额外的工作量,
17+
但是您将获得基于速度、可靠性和稳定性的回报.
18+
API不会频繁更改, 但是网页和HTML定位符经常变化,
19+
并且需要您更新测试框架的代码.
3220

33-
WebDriver implementations that are
34-
[W3C conformant](//w3c.github.io/webdriver/webdriver-spec.html)
35-
also annotate the `navigator` object
36-
with a `webdriver` property
37-
so that Denial of Service attacks can be mitigated.
21+
在任何时候测试使用WebDriver登录第三方站点,
22+
都会增加测试失败的风险,
23+
因为这会使您的测试时间更长.
24+
通常的经验是, 执行时间较长的测试会更加脆弱和不可靠.
25+
26+
符合[W3C conformant](//w3c.github.io/webdriver/webdriver-spec.html)
27+
的WebDriver实现,
28+
也会使用 `WebDriver` 的属性对 `navigator` 对象进行注释,
29+
用于缓解拒绝服务的攻击.

0 commit comments

Comments
 (0)