File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ def test_例子1(self):
16
16
self .输入文本 ("#searchInput" , "麻婆豆腐" )
17
17
self .单击 ("#searchButton" )
18
18
self .断言文本 ("麻婆豆腐" , "#firstHeading" )
19
- self .断言元素 ('div.thumb div :contains("一家中餐館的麻婆豆腐")' )
19
+ self .断言元素 ('figure :contains("一家中餐館的麻婆豆腐")' )
20
20
self .输入文本 ("#searchInput" , "精武英雄" )
21
21
self .单击 ("#searchButton" )
22
22
self .断言元素 ('img[src*="Fist_of_legend.jpg"]' )
Original file line number Diff line number Diff line change @@ -420,7 +420,7 @@ class 我的测试类(硒测试用例):
420
420
self .输入文本(" #searchInput" , " 麻婆豆腐" )
421
421
self .单击(" #searchButton" )
422
422
self .断言文本(" 麻婆豆腐" , " #firstHeading" )
423
- self .断言元素(' div.thumb div :contains("一家中餐館的麻婆豆腐")' )
423
+ self .断言元素(' figure :contains("一家中餐館的麻婆豆腐")' )
424
424
self .输入文本(" #searchInput" , " 精武英雄" )
425
425
self .单击(" #searchButton" )
426
426
self .断言元素(' img[src*="Fist_of_legend.jpg"]' )
You can’t perform that action at this time.
0 commit comments