-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathdutch_test_1.py
22 lines (20 loc) · 969 Bytes
/
dutch_test_1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Dutch Language Test
from seleniumbase.translate.dutch import Testgeval
Testgeval.main(__name__, __file__)
class MijnTestklasse(Testgeval):
def test_voorbeeld_1(self):
self.openen("https://nl.wikipedia.org/wiki/Hoofdpagina")
self.controleren_element('a[title*="Welkom voor nieuwkomers"]')
self.controleren_tekst("Welkom op Wikipedia", "td.hp-welkom")
self.typ("#searchform input", "Stroopwafel")
self.klik("#searchform button")
self.controleren_tekst("Stroopwafel", "#firstHeading")
self.controleren_element('img[src*="Stroopwafels"]')
self.typ("#searchform input", "Rijksmuseum Amsterdam")
self.klik("#searchform button")
self.controleren_tekst("Rijksmuseum", "#firstHeading")
self.controleren_element('img[src*="Rijksmuseum"]')
self.terug()
self.controleren_url_bevat("Stroopwafel")
self.vooruit()
self.controleren_url_bevat("Rijksmuseum")