Skip to content

Add the Japanese translation of SeleniumBase

Compare
Choose a tag to compare
@mdmintz mdmintz released this 20 Mar 04:41
· 5247 commits to master since this release
8e60171

Add the Japanese translation of SeleniumBase

  • Adding SeleniumBase methods in Japanese
  • Also updating the Chinese translation
  • Add an example test in Japanese

Here's what the example test in Japanese looks like:

from seleniumbase.translate.japanese import セレンテストケース

class テストクラス(セレンテストケース):

    def test_例1(self):
        self.URLを開く("https://ja.wikipedia.org/wiki/")
        self.テキストを確認する("ウィキペディア")
        self.要素を確認する('[title="メインページに移動する"]')
        self.テキストを更新("#searchInput", "アニメ")
        self.クリックして("#searchButton")
        self.テキストを確認する("アニメ", "#firstHeading")
        self.テキストを更新("#searchInput", "寿司")
        self.クリックして("#searchButton")
        self.テキストを確認する("寿司", "#firstHeading")
        self.要素を確認する('img[alt="握り寿司"]')