Skip to content

Commit caead29

Browse files
skyhiriderdiemol
andauthored
closes SeleniumHQ#533 (SeleniumHQ#535) [deploy site]
* closes SeleniumHQ#533 described attachment download option via HtmlUnit * added untranslated text to all other languages * Update docs_source_files/content/worst_practices/file_downloads.es.md * Update docs_source_files/content/worst_practices/file_downloads.fr.md * Update docs_source_files/content/worst_practices/file_downloads.ja.md * Update docs_source_files/content/worst_practices/file_downloads.ko.md * Update docs_source_files/content/worst_practices/file_downloads.nl.md * Update docs_source_files/content/worst_practices/file_downloads.zh-cn.md Co-authored-by: Diego Molina <[email protected]>
1 parent 8c65538 commit caead29

8 files changed

+52
-5
lines changed

docs_source_files/content/worst_practices/file_downloads.de.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ of emulating user interaction with the web platform.
1717
Instead, find the link using Selenium
1818
(and any required cookies)
1919
and pass it to a HTTP request library like
20-
[libcurl](//curl.haxx.se/libcurl/).
20+
[libcurl](//curl.haxx.se/libcurl/).
21+
22+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

docs_source_files/content/worst_practices/file_downloads.en.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ of emulating user interaction with the web platform.
1212
Instead, find the link using Selenium
1313
(and any required cookies)
1414
and pass it to a HTTP request library like
15-
[libcurl](//curl.haxx.se/libcurl/).
15+
[libcurl](//curl.haxx.se/libcurl/).
16+
17+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

docs_source_files/content/worst_practices/file_downloads.es.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,12 @@ Esto es debido a que descargar archivos no es considerado un aspecto importante
1010
de la emulación de las interacciones de los usuarios con las plataformas web.
1111
En lugar de ello, se recomienda encontrar el enlace con Selenium (y cualquier
1212
Cookie requerida) y pasarselo a una librería que permita hacer peticiones HTTP
13-
como [libcurl](//curl.haxx.se/libcurl/).
13+
como [libcurl](//curl.haxx.se/libcurl/).
14+
15+
{{% notice info %}}
16+
<i class="fas fa-language"></i> Page being translated from
17+
English to Spanish. Do you speak Spanish? Help us to translate
18+
it by sending us pull requests!
19+
{{% /notice %}}
20+
21+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

docs_source_files/content/worst_practices/file_downloads.fr.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ d'émuler l'interaction des utilisateurs avec la plate-forme Web.
1414
À la place, recherchez le lien à l'aide de Selenium
1515
(et tous les cookies requis)
1616
et le passer à une bibliothèque de requêtes HTTP comme
17-
[libcurl](//curl.haxx.se/libcurl/).
17+
[libcurl](//curl.haxx.se/libcurl/).
18+
19+
{{% notice info %}}
20+
<i class="fas fa-language"></i> Page being translated from
21+
English to French. Do you speak French? Help us to translate
22+
it by sending us pull requests!
23+
{{% /notice %}}
24+
25+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

docs_source_files/content/worst_practices/file_downloads.ja.md

+8
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ weight: 2
77
Seleniumの管理下にあるブラウザーでリンクをクリックしてダウンロードを開始することは可能ですが、APIはダウンロードの進行状況を公開しないため、ダウンロードしたファイルのテストには理想的ではありません。
88
これは、ファイルのダウンロードは、Webプラットフォームとのユーザーインタラクションをエミュレートする重要な側面とは見なされないためです。
99
代わりに、Selenium(および必要なCookie)を使用してリンクを見つけ、 [libcurl](//curl.haxx.se/libcurl/) などのHTTPリクエストライブラリに渡します。
10+
11+
{{% notice info %}}
12+
<i class="fas fa-language"></i> Page being translated from
13+
English to Japanese. Do you speak Japanese? Help us to translate
14+
it by sending us pull requests!
15+
{{% /notice %}}
16+
17+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

docs_source_files/content/worst_practices/file_downloads.ko.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ weight: 2
66
Selenium의 제어 하에 브라우저로 링크를 클릭하면 다운로드를 시작할 수 있지만, API는 다운로드 진행 상황을 노출시키지 않아 다운로드 파일 테스트에 이상적이지 않다.
77
이것은 파일 다운로드가 웹 플랫폼과의 사용자 상호작용을 모방하는 중요한 측면으로 여겨지지 않기 때문이다.
88
대신 Selenium(및 필요한 쿠키)을 사용하여 링크를 찾아 HTTP 요청 라이브러리 like [libcurl](//curl.haxx.se/libcurl/).에 전달하라.
9+
10+
{{% notice info %}}
11+
<i class="fas fa-language"></i> Page being translated from
12+
English to Korean. Do you speak Korean? Help us to translate
13+
it by sending us pull requests!
14+
{{% /notice %}}
15+
16+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

docs_source_files/content/worst_practices/file_downloads.nl.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ of emulating user interaction with the web platform.
1818
Instead, find the link using Selenium
1919
(and any required cookies)
2020
and pass it to a HTTP request library like
21-
[libcurl](//curl.haxx.se/libcurl/).
21+
[libcurl](//curl.haxx.se/libcurl/).
22+
23+
24+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

docs_source_files/content/worst_practices/file_downloads.zh-cn.md

+8
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,11 @@ weight: 2
66

77
虽然可以通过在Selenium的控制下单击浏览器的链接来开始下载, 但是API并不会暴露下载进度, 因此这是一种不理想的测试下载文件的方式.
88
因为下载文件并非模拟用户与Web平台交互的重要方面. 取而代之的是, 应使用Selenium(以及任何必要的cookie)查找链接, 并将其传递给例如[libcurl](//curl.haxx.se/libcurl/)这样的HTTP请求库.
9+
10+
{{% notice info %}}
11+
<i class="fas fa-language"></i> Page being translated from
12+
English to Chinese. Do you speak Chinese? Help us to translate
13+
it by sending us pull requests!
14+
{{% /notice %}}
15+
16+
The [HtmlUnit driver](https://github.com/SeleniumHQ/htmlunit-driver) can download attachments by accessing them as input streams by implementing the [AttachmentHandler](https://htmlunit.sourceforge.io/apidocs/com/gargoylesoftware/htmlunit/attachment/AttachmentHandler.html) interface. The AttachmentHandler can the be added to the [HtmlUnit](https://htmlunit.sourceforge.io/) WebClient.

0 commit comments

Comments
 (0)