@@ -267,10 +267,10 @@ class 我的测试类(硒测试用例):
267
267
self .单击(" #searchButton" )
268
268
self .断言文本(" 舞龍" , " #firstHeading" )
269
269
self .断言元素(' img[src*="Chinese_draak.jpg"]' )
270
- self .输入文本(" #searchInput" , " 火鍋 " )
270
+ self .输入文本(" #searchInput" , " 麻婆豆腐 " )
271
271
self .单击(" #searchButton" )
272
- self .断言文本(" 火鍋 " , " #firstHeading" )
273
- self .断言元素(' td :contains("火鍋的各種食材 ")' )
272
+ self .断言文本(" 麻婆豆腐 " , " #firstHeading" )
273
+ self .断言元素(' div.thumb div :contains("一家中餐館的麻婆豆腐 ")' )
274
274
self .输入文本(" #searchInput" , " 精武英雄" )
275
275
self .单击(" #searchButton" )
276
276
self .断言元素(' img[src*="Fist_of_legend.jpg"]' )
@@ -294,11 +294,11 @@ class MijnTestklasse(Testgeval):
294
294
self .typ(" #searchInput" , " Stroopwafel" )
295
295
self .klik(" #searchButton" )
296
296
self .controleren_tekst(" Stroopwafel" , " #firstHeading" )
297
- self .controleren_element(' img[alt ="Stroopwafels"]' )
297
+ self .controleren_element(' img[src* ="Stroopwafels"]' )
298
298
self .typ(" #searchInput" , " Rijksmuseum Amsterdam" )
299
299
self .klik(" #searchButton" )
300
300
self .controleren_tekst(" Rijksmuseum" , " #firstHeading" )
301
- self .controleren_element(' img[alt="Het Rijksmuseum"]' )
301
+ self .controleren_element(' img[src*=" Rijksmuseum"]' )
302
302
self .terug()
303
303
self .controleren_ware(" Stroopwafel" in self .huidige_url_ophalen())
304
304
self .vooruit()
@@ -319,12 +319,12 @@ class MaClasseDeTest(CasDeBase):
319
319
self .ouvrir(" https://fr.wikipedia.org/wiki/" )
320
320
self .vérifier_texte(" Wikipédia" )
321
321
self .vérifier_élément(' [alt="Wikipédia"]' )
322
- self .taper (" #searchInput " , " Crème brûlée" )
323
- self .cliquer(" #searchButton " )
322
+ self .js_taper (" #searchform input " , " Crème brûlée" )
323
+ self .cliquer(" #searchform button " )
324
324
self .vérifier_texte(" Crème brûlée" , " #firstHeading" )
325
325
self .vérifier_élément(' img[alt*="Crème brûlée"]' )
326
- self .taper (" #searchInput " , " Jardin des Tuileries" )
327
- self .cliquer(" #searchButton " )
326
+ self .js_taper (" #searchform input " , " Jardin des Tuileries" )
327
+ self .cliquer(" #searchform button " )
328
328
self .vérifier_texte(" Jardin des Tuileries" , " #firstHeading" )
329
329
self .vérifier_élément(' img[alt*="Jardin des Tuileries"]' )
330
330
self .retour()
@@ -384,7 +384,7 @@ class 私のテストクラス(セレニウムテストケース):
384
384
self .要素を確認する(' img[alt="握り寿司"]' )
385
385
self .入力(" #searchInput" , " レゴランド・ジャパン" )
386
386
self .クリックして(" #searchButton" )
387
- self .要素を確認する(' img[alt="Legoland japan.jpg "]' )
387
+ self .要素を確認する(' img[alt*="LEGOLAND JAPAN "]' )
388
388
self .リンクテキストを確認する(" 名古屋城" )
389
389
self .リンクテキストをクリックします(" テーマパーク" )
390
390
self .テキストを確認する(" テーマパーク" , " #firstHeading" )
@@ -404,13 +404,13 @@ class 테스트_클래스(셀레늄_테스트_케이스):
404
404
self .열기(" https://ko.wikipedia.org/wiki/" )
405
405
self .텍스트_확인(" 위키백과" )
406
406
self .요소_확인(' [title="위키백과:소개"]' )
407
- self .입력 (" #searchInput " , " 김치" )
408
- self .클릭(" #searchButton " )
407
+ self .JS_ 입력 (" #searchform input " , " 김치" )
408
+ self .클릭(" #searchform button " )
409
409
self .텍스트_확인(" 김치" , " #firstHeading" )
410
410
self .요소_확인(' img[alt="Various kimchi.jpg"]' )
411
411
self .링크_텍스트_확인(" 한국 요리" )
412
- self .입력 (" #searchInput " , " 비빔밥" )
413
- self .클릭(" #searchButton " )
412
+ self .JS_ 입력 (" #searchform input " , " 비빔밥" )
413
+ self .클릭(" #searchform button " )
414
414
self .텍스트_확인(" 비빔밥" , " #firstHeading" )
415
415
self .요소_확인(' img[alt="Dolsot-bibimbap.jpg"]' )
416
416
self .링크_텍스트를_클릭합니다(" 돌솥비빔밥" )
@@ -431,18 +431,18 @@ class MinhaClasseDeTeste(CasoDeTeste):
431
431
self .abrir(" https://pt.wikipedia.org/wiki/" )
432
432
self .verificar_texto(" Wikipédia" )
433
433
self .verificar_elemento(' [title="Língua portuguesa"]' )
434
- self .digitar (" #searchInput " , " João Pessoa" )
435
- self .clique(" #searchButton " )
434
+ self .js_digitar (" #searchform input " , " João Pessoa" )
435
+ self .clique(" #searchform button " )
436
436
self .verificar_texto(" João Pessoa" , " #firstHeading" )
437
437
self .verificar_elemento(' img[alt*="João Pessoa"]' )
438
- self .digitar (" #searchInput " , " Florianópolis" )
439
- self .clique(" #searchButton " )
438
+ self .js_digitar (" #searchform input " , " Florianópolis" )
439
+ self .clique(" #searchform button " )
440
440
self .verificar_texto(" Florianópolis" , " h1#firstHeading" )
441
- self .verificar_elemento(' img[alt*= "Avenida Beira Mar"] ' )
441
+ self .verificar_elemento(' td:contains( "Avenida Beira- Mar") ' )
442
442
self .voltar()
443
443
self .verificar_verdade(" João" in self .obter_url_atual())
444
- self .digitar (" #searchInput " , " Teatro Amazonas" )
445
- self .clique(" #searchButton " )
444
+ self .js_digitar (" #searchform input " , " Teatro Amazonas" )
445
+ self .clique(" #searchform button " )
446
446
self .verificar_texto(" Teatro Amazonas" , " #firstHeading" )
447
447
self .verificar_texto_do_link(" Festival Amazonas de Ópera" )
448
448
```
0 commit comments