Skip to content

Commit c9b39bb

Browse files
committed
Add a Japanese example test
1 parent 4fdb717 commit c9b39bb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Japanese Language Test - Python 3 Only!
2+
from seleniumbase.translate.japanese import セレンテストケース # noqa
3+
4+
5+
class テストクラス(セレンテストケース): # noqa
6+
7+
def test_例1(self):
8+
self.URLを開く("https://ja.wikipedia.org/wiki/")
9+
self.テキストを確認する("ウィキペディア")
10+
self.要素を確認する('[title="メインページに移動する"]')
11+
self.テキストを更新("#searchInput", "アニメ")
12+
self.クリックして("#searchButton")
13+
self.テキストを確認する("アニメ", "#firstHeading")
14+
self.テキストを更新("#searchInput", "寿司")
15+
self.クリックして("#searchButton")
16+
self.テキストを確認する("寿司", "#firstHeading")
17+
self.要素を確認する('img[alt="握り寿司"]')

0 commit comments

Comments
 (0)