We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4beab88 commit 46a2bcdCopy full SHA for 46a2bcd
examples/translations/chinese_test_1.py
@@ -0,0 +1,21 @@
1
+from seleniumbase.translate.chinese import 硒测试用例
2
+
3
4
+class 测试类(硒测试用例):
5
6
+ def test_例子1(self):
7
+ self.开启网址("https://xkcd.in/comic?lg=cn&id=353")
8
+ self.断言标题("Python - XKCD中文站")
9
+ self.断言元素("#content div.comic-body")
10
+ self.断言文本("上漫画")
11
+ self.单击("div.nextLink")
12
+ self.断言文本("老妈的逆袭", "#content h1")
13
+ self.单击链接文本("下一篇")
14
+ self.断言文本("敲桌子", "#content h1")
15
+ self.断言文本("有时候无聊就是最棒的乐趣")
16
+ self.回去()
17
+ self.单击链接文本("兰德尔·门罗")
18
+ self.断言文本("兰德尔·门罗", "#firstHeading")
19
+ self.更新文本("#searchInput", "程式设计")
20
+ self.单击("#searchButton")
21
+ self.断言文本("程序设计", "#firstHeading")
0 commit comments