Ejemplo n.º 1
0
class TestExample(ContestoTestCase):
    def setUp(self):
        super(TestExample, self).setUp()
        self.driver.get("http://2gis.ru")
        self.page = CityPage(self.driver)

    def test_example(self):
        self.page.search_bar().search("1")
        results_count = self.page.search_results().results_count()
        self.assertGreater(results_count, 0)
Ejemplo n.º 2
0
 def setUp(self):
     super(TestExample, self).setUp()
     self.driver.get("http://2gis.ru")
     self.page = CityPage(self.driver)