Skip to content

Commit 0ea7d2d

Browse files
committed
Update the Japanese examples
1 parent 5a90a60 commit 0ea7d2d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

examples/translations/japanese_test_1.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ class 私のテストクラス(セレニウムテストケース):
66
def test_例1(self):
77
self.を開く("https://ja.wikipedia.org/wiki/")
88
self.テキストを確認する("ウィキペディア")
9-
self.要素を確認する('[title="メインページに移動する"]')
10-
self.入力("#searchInput", "アニメ")
11-
self.クリックして("#searchButton")
9+
self.要素を確認する('[title*="メインページに移動する"]')
10+
self.JS入力('input[name="search"]', "アニメ")
11+
self.クリックして("#searchform button")
1212
self.テキストを確認する("アニメ", "#firstHeading")
13-
self.入力("#searchInput", "寿司")
14-
self.クリックして("#searchButton")
13+
self.JS入力('input[name="search"]', "寿司")
14+
self.クリックして("#searchform button")
1515
self.テキストを確認する("寿司", "#firstHeading")
1616
self.要素を確認する('img[alt="握り寿司"]')
1717
self.入力("#searchInput", "レゴランド・ジャパン")
18-
self.クリックして("#searchButton")
18+
self.クリックして("div.suggestions span.highlight")
1919
self.要素を確認する('img[alt*="LEGOLAND JAPAN"]')
2020
self.リンクテキストを確認する("名古屋城")
2121
self.リンクテキストをクリックします("テーマパーク")

help_docs/syntax_formats.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,16 +372,16 @@ class 私のテストクラス(セレニウムテストケース):
372372
def test_例1(self):
373373
self.を開く("https://ja.wikipedia.org/wiki/")
374374
self.テキストを確認する("ウィキペディア")
375-
self.要素を確認する('[title="メインページに移動する"]')
376-
self.入力("#searchInput", "アニメ")
377-
self.クリックして("#searchButton")
375+
self.要素を確認する('[title*="メインページに移動する"]')
376+
self.JS入力('input[name="search"]', "アニメ")
377+
self.クリックして("#searchform button")
378378
self.テキストを確認する("アニメ", "#firstHeading")
379-
self.入力("#searchInput", "寿司")
380-
self.クリックして("#searchButton")
379+
self.JS入力('input[name="search"]', "寿司")
380+
self.クリックして("#searchform button")
381381
self.テキストを確認する("寿司", "#firstHeading")
382382
self.要素を確認する('img[alt="握り寿司"]')
383383
self.入力("#searchInput", "レゴランド・ジャパン")
384-
self.クリックして("#searchButton")
384+
self.クリックして("div.suggestions span.highlight")
385385
self.要素を確認する('img[alt*="LEGOLAND JAPAN"]')
386386
self.リンクテキストを確認する("名古屋城")
387387
self.リンクテキストをクリックします("テーマパーク")

0 commit comments

Comments
 (0)