@@ -450,9 +450,10 @@ class 我的测试类(硒测试用例):
450450 self .开启(" https://zh.wikipedia.org/wiki/" )
451451 self .断言标题(" 维基百科,自由的百科全书" )
452452 self .断言元素(' a[title="Wikipedia:关于"]' )
453+ self .如果可见请单击(' button[aria-label="关闭"]' )
454+ self .如果可见请单击(' button[aria-label="關閉"]' )
453455 self .断言元素(' span:contains("创建账号")' )
454456 self .断言元素(' span:contains("登录")' )
455- self .断言文本(" 新闻动态" , " span#新闻动态" )
456457 self .输入文本(' input[name="search"]' , " 舞龍" )
457458 self .单击(' button:contains("搜索")' )
458459 self .断言文本(" 舞龍" , " #firstHeading" )
@@ -484,14 +485,14 @@ Testgeval.main(__name__, __file__)
484485class MijnTestklasse (Testgeval ):
485486 def test_voorbeeld_1 (self ):
486487 self .openen(" https://nl.wikipedia.org/wiki/Hoofdpagina" )
487- self .controleren_element(' a[title*="hoofdpagina gaan "]' )
488+ self .controleren_element(' a[title*="Welkom voor nieuwkomers "]' )
488489 self .controleren_tekst(" Welkom op Wikipedia" , " td.hp-welkom" )
489- self .typ(" #searchInput " , " Stroopwafel" )
490- self .klik(" #searchButton " )
490+ self .typ(" #searchform input " , " Stroopwafel" )
491+ self .klik(" #searchform button " )
491492 self .controleren_tekst(" Stroopwafel" , " #firstHeading" )
492493 self .controleren_element(' img[src*="Stroopwafels"]' )
493- self .typ(" #searchInput " , " Rijksmuseum Amsterdam" )
494- self .klik(" #searchButton " )
494+ self .typ(" #searchform input " , " Rijksmuseum Amsterdam" )
495+ self .klik(" #searchform button " )
495496 self .controleren_tekst(" Rijksmuseum" , " #firstHeading" )
496497 self .controleren_element(' img[src*="Rijksmuseum"]' )
497498 self .terug()
@@ -517,6 +518,7 @@ class MaClasseDeTest(CasDeBase):
517518 self .ouvrir(" https://fr.wikipedia.org/wiki/" )
518519 self .vérifier_texte(" Wikipédia" )
519520 self .vérifier_élément(' [alt="Wikipédia"]' )
521+ self .cliquer_si_affiché(' button[aria-label="Close"]' )
520522 self .js_taper(" #searchform input" , " Crème brûlée" )
521523 self .cliquer(" #searchform button" )
522524 self .vérifier_texte(" Crème brûlée" , " #firstHeading" )
@@ -674,7 +676,7 @@ class МойТестовыйКласс(ТестНаСелен):
674676 def test_пример_1(self ):
675677 self .открыть(" https://ru.wikipedia.org/wiki/" )
676678 self .подтвердить_элемент(' [title="Русский язык"]' )
677- self .подтвердить_текст(" Википедия" , " h2 .main-wikimedia-header" )
679+ self .подтвердить_текст(" Википедия" , " div .main-wikimedia-header" )
678680 self .введите(" #searchInput" , " МГУ" )
679681 self .нажмите(" #searchButton" )
680682 self .подтвердить_текст(" университет" , " #firstHeading" )
0 commit comments