Skip to content

Commit 61431b9

Browse files
committed
docs(tra): translate to other languages
1 parent 3384cd2 commit 61431b9

File tree

4 files changed

+76
-12
lines changed

4 files changed

+76
-12
lines changed

website_and_docs/content/documentation/webdriver/support_features/listeners.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ These allow you to execute custom actions in every time specific Selenium comman
1212

1313
## Define
1414

15-
A custom Listener needs to inherit from AbstractEventListener in Selenium and override the methods in AbstractEventListener.
16-
Here’s a simple example to print and log events:
15+
A custom Listener needs to inherit from AbstractEventListener in Selenium and override the methods in AbstractEventListener.
16+
Here’s a simple example to print and log events:
1717

1818
{{< tabpane text=true >}}
1919
{{< tab header="Java" >}}
2020
{{< badge-code >}}
2121
{{< /tab >}}
2222
{{% tab header="Python" %}}
23-
{{< gh-codeblock path="examples/python/tests/support/test_listener.py" >}}
23+
{{< gh-codeblock path="examples/python/tests/support/test_listener.py#L1-L33" >}}
2424
{{% /tab %}}
2525
{{< tab header="CSharp" >}}
2626
{{< badge-code >}}

website_and_docs/content/documentation/webdriver/support_features/listeners.ja.md

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,51 @@
11
---
2-
title: "Command Listeners"
3-
linkTitle: "Listeners"
2+
title: "コマンドリスナー"
3+
linkTitle: "リスナー"
44
weight: 2
55
aliases: [
6-
"/ja/documentation/webdriver/drivers/listeners",
6+
"/documentation/webdriver/drivers/listeners",
77
]
88
---
99

10-
These allow you to execute custom actions in every time specific Selenium commands are sent
10+
これにより、特定のSeleniumコマンドが送信されるたびにカスタムアクションを実行することができます。
11+
12+
13+
## 定義
14+
15+
カスタムリスナーは、SeleniumのAbstractEventListenerを継承し、AbstractEventListenerのメソッドをオーバーライドする必要があります。
16+
イベントを印刷してログに記録するための簡単な例を示します:
1117

1218
{{< tabpane text=true >}}
1319
{{< tab header="Java" >}}
1420
{{< badge-code >}}
1521
{{< /tab >}}
1622
{{% tab header="Python" %}}
23+
{{< gh-codeblock path="examples/python/tests/support/test_listener.py#L1-L33" >}}
24+
{{% /tab %}}
25+
{{< tab header="CSharp" >}}
1726
{{< badge-code >}}
27+
{{< /tab >}}
28+
{{< tab header="Ruby" >}}
29+
{{< badge-code >}}
30+
{{< /tab >}}
31+
{{< tab header="JavaScript" >}}
32+
{{< badge-code >}}
33+
{{< /tab >}}
34+
{{< tab header="Kotlin" >}}
35+
{{< badge-code >}}
36+
{{< /tab >}}
37+
{{< /tabpane >}}
38+
39+
## 使用(しよう)
40+
41+
EventFiringWebDriverを使ってイベントリスナードライバーを作成する:
42+
43+
{{< tabpane text=true >}}
44+
{{< tab header="Java" >}}
45+
{{< badge-code >}}
46+
{{< /tab >}}
47+
{{% tab header="Python" %}}
48+
{{< gh-codeblock path="examples/python/tests/support/test_listener.py#L87-L96" >}}
1849
{{% /tab %}}
1950
{{< tab header="CSharp" >}}
2051
{{< badge-code >}}
@@ -29,3 +60,4 @@ These allow you to execute custom actions in every time specific Selenium comman
2960
{{< badge-code >}}
3061
{{< /tab >}}
3162
{{< /tabpane >}}
63+

website_and_docs/content/documentation/webdriver/support_features/listeners.pt-br.md

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,51 @@
11
---
2-
title: "Command Listeners"
3-
linkTitle: "Listeners"
2+
title: "Ouvintes de Comando"
3+
linkTitle: "Ouvintes"
44
weight: 2
55
aliases: [
6-
"/pt-br/documentation/webdriver/drivers/listeners",
6+
"/documentation/webdriver/drivers/listeners",
77
]
88
---
99

10-
These allow you to execute custom actions in every time specific Selenium commands are sent
10+
isso permite que você execute ações personalizadas sempre que comandos específicos do Selenium são enviados.
11+
12+
13+
## Definir
14+
15+
Um Listener personalizado precisa herdar de AbstractEventListener no Selenium e sobrescrever os métodos em AbstractEventListener.
16+
Aqui está um exemplo simples para imprimir e registrar eventos:
1117

1218
{{< tabpane text=true >}}
1319
{{< tab header="Java" >}}
1420
{{< badge-code >}}
1521
{{< /tab >}}
1622
{{% tab header="Python" %}}
23+
{{< gh-codeblock path="examples/python/tests/support/test_listener.py#L1-L33" >}}
24+
{{% /tab %}}
25+
{{< tab header="CSharp" >}}
1726
{{< badge-code >}}
27+
{{< /tab >}}
28+
{{< tab header="Ruby" >}}
29+
{{< badge-code >}}
30+
{{< /tab >}}
31+
{{< tab header="JavaScript" >}}
32+
{{< badge-code >}}
33+
{{< /tab >}}
34+
{{< tab header="Kotlin" >}}
35+
{{< badge-code >}}
36+
{{< /tab >}}
37+
{{< /tabpane >}}
38+
39+
## Uso
40+
41+
Crie um driver de ouvinte de eventos através do EventFiringWebDriver:
42+
43+
{{< tabpane text=true >}}
44+
{{< tab header="Java" >}}
45+
{{< badge-code >}}
46+
{{< /tab >}}
47+
{{% tab header="Python" %}}
48+
{{< gh-codeblock path="examples/python/tests/support/test_listener.py#L87-L96" >}}
1849
{{% /tab %}}
1950
{{< tab header="CSharp" >}}
2051
{{< badge-code >}}
@@ -29,3 +60,4 @@ These allow you to execute custom actions in every time specific Selenium comman
2960
{{< badge-code >}}
3061
{{< /tab >}}
3162
{{< /tabpane >}}
63+

website_and_docs/content/documentation/webdriver/support_features/listeners.zh-cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ aliases: [
1111

1212
## 定义
1313

14-
自定义的Listener需要继承selenium中的AbstractEventListener同时重写AbstractEventListener中的方法,
14+
自定义的Listener需要继承selenium中的AbstractEventListener同时重写AbstractEventListener中的方法.
1515
有一个简单打印和记录事件的例子:
1616

1717
{{< tabpane text=true >}}

0 commit comments

Comments
 (0)