File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ class 我的测试类(硒测试用例):
19
19
self .输入文本(' input[name="search"]' , " 舞龍" )
20
20
self .单击(' button:contains("搜索")' )
21
21
self .断言文本(" 舞龍" , " #firstHeading" )
22
+ self .断言元素(' img[src*="Chinese_draak.jpg"]' )
22
23
```
23
24
24
25
Here's another example:
@@ -36,6 +37,9 @@ class 私のテストクラス(セレニウムテストケース):
36
37
self .クリックして(" #searchform button" )
37
38
self .テキストを確認する(" アニメ" , " #firstHeading" )
38
39
self .JS 入力(' input[name="search"]' , " 寿司" )
40
+ self .クリックして(" #searchform button" )
41
+ self .テキストを確認する(" 寿司" , " #firstHeading" )
42
+ self .要素を確認する(' img[alt="握り寿司"]' )
39
43
```
40
44
41
45
<a id =" translation_api " ></a >
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class 我的测试类(硒测试用例):
21
21
self .输入文本(' input[name="search"]' , " 舞龍" )
22
22
self .单击(' button:contains("搜索")' )
23
23
self .断言文本(" 舞龍" , " #firstHeading" )
24
+ self .断言元素(' img[src*="Chinese_draak.jpg"]' )
24
25
```
25
26
26
27
Here's another example:
@@ -38,6 +39,9 @@ class 私のテストクラス(セレニウムテストケース):
38
39
self .クリックして(" #searchform button" )
39
40
self .テキストを確認する(" アニメ" , " #firstHeading" )
40
41
self .JS 入力(' input[name="search"]' , " 寿司" )
42
+ self .クリックして(" #searchform button" )
43
+ self .テキストを確認する(" 寿司" , " #firstHeading" )
44
+ self .要素を確認する(' img[alt="握り寿司"]' )
41
45
```
42
46
43
47
<a id =" translation_api " ></a >
You can’t perform that action at this time.
0 commit comments