Skip to content

Add Chinese translation of "http_proxies" #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 12 additions & 15 deletions docs_source_files/content/webdriver/http_proxies.zh-cn.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,23 @@
---
title: "Http proxies"
title: "Http 代理"
weight: 7
---

A proxy server acts as an intermediary for
requests between a client and a server. In simple,
the traffic flows through the proxy server
on its way to the address you requested and back.
代理服务器充当客户端和服务器之间的请求中介.
简述而言, 流量将通过代理服务器流向您请求的地址, 然后返回.

A proxy server for automation scripts
with Selenium could be helpful for:
使用代理服务器用于Selenium的自动化脚本,
可能对以下方面有益:

* Capture network traffic
* Mock backend calls made by the website
* Access the requited website under complex network
topologies or strict corporate restrictions/policies.
* 捕获网络流量
* 模拟网站后端响应
* 在复杂的网络拓扑结构或严格的公司限制/政策下访问目标站点.

If you are in a corporate environment, and a
browser fails to connect to a URL, this is most
likely because the environment needs a proxy to be accessed.
如果您在公司环境中,
并且浏览器无法连接到URL,
则最有可能是因为环境, 需要借助代理进行访问.

Selenium WebDriver provides a way to proxy settings
Selenium WebDriver提供了如下设置代理的方法

{{< code-tab >}}
{{< code-panel language="java" >}}
Expand Down