Skip to content

Commit

Permalink
test_number_of_clocks added
Browse files Browse the repository at this point in the history
  • Loading branch information
vgraph committed Jun 11, 2019
1 parent 39ae0e0 commit 829ac35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions TestYandexTime.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ def driver(request):


class TestYandexTime:
number_of_clocks = 5

def test_01(self, driver):
def test_number_of_clocks(self, driver):
driver.get("https://yandex.ru/time/")
first_city = driver.find_element_by_css_selector(".city__label")
print("Text:", first_city.get_property("textContent"))
cities = driver.find_elements_by_css_selector(".city__label")
assert len(cities) == self.number_of_clocks

0 comments on commit 829ac35

Please sign in to comment.