Update the Japanese examples

This commit is contained in:
Michael Mintz 2022-06-30 17:35:55 -04:00
parent 5a90a604a6
commit 0ea7d2d08d
2 changed files with 12 additions and 12 deletions

View File

@ -6,16 +6,16 @@ class 私のテストクラス(セレニウムテストケース):
def test_例1(self):
self.を開く("https://ja.wikipedia.org/wiki/")
self.テキストを確認する("ウィキペディア")
self.要素を確認する('[title="メインページに移動する"]')
self.入力("#searchInput", "アニメ")
self.クリックして("#searchButton")
self.要素を確認する('[title*="メインページに移動する"]')
self.JS入力('input[name="search"]', "アニメ")
self.クリックして("#searchform button")
self.テキストを確認する("アニメ", "#firstHeading")
self.入力("#searchInput", "寿司")
self.クリックして("#searchButton")
self.JS入力('input[name="search"]', "寿司")
self.クリックして("#searchform button")
self.テキストを確認する("寿司", "#firstHeading")
self.要素を確認する('img[alt="握り寿司"]')
self.入力("#searchInput", "レゴランド・ジャパン")
self.クリックして("#searchButton")
self.クリックして("div.suggestions span.highlight")
self.要素を確認する('img[alt*="LEGOLAND JAPAN"]')
self.リンクテキストを確認する("名古屋城")
self.リンクテキストをクリックします("テーマパーク")

View File

@ -372,16 +372,16 @@ class 私のテストクラス(セレニウムテストケース):
def test_例1(self):
self.を開く("https://ja.wikipedia.org/wiki/")
self.テキストを確認する("ウィキペディア")
self.要素を確認する('[title="メインページに移動する"]')
self.入力("#searchInput", "アニメ")
self.クリックして("#searchButton")
self.要素を確認する('[title*="メインページに移動する"]')
self.JS入力('input[name="search"]', "アニメ")
self.クリックして("#searchform button")
self.テキストを確認する("アニメ", "#firstHeading")
self.入力("#searchInput", "寿司")
self.クリックして("#searchButton")
self.JS入力('input[name="search"]', "寿司")
self.クリックして("#searchform button")
self.テキストを確認する("寿司", "#firstHeading")
self.要素を確認する('img[alt="握り寿司"]')
self.入力("#searchInput", "レゴランド・ジャパン")
self.クリックして("#searchButton")
self.クリックして("div.suggestions span.highlight")
self.要素を確認する('img[alt*="LEGOLAND JAPAN"]')
self.リンクテキストを確認する("名古屋城")
self.リンクテキストをクリックします("テーマパーク")