def test_search_in_yandex(self): driver = self.driver driver.implicitly_wait(3) logging.info(u'set wait time 3 sec') try: driver.get("https://www.yandex.ru/") logging.info(u'go to yandex.ru') except: logging.error(u'cannot go to yandex.ru') try: assert "Яндекс" in driver.title logging.info(u'it is yandex.ru') except: logging.error(u'it is not yandex.ru') try: search = Page(driver) except: logging.error(u'cannot create object of class') try: search.search_in_yandex('Тензор') logging.info(u'input text') except: logging.error(u"cannot input Тензор") try: search.check_suggest() logging.info(u'suggest is find') except: logging.error(u'suggest not find') try: search.click_on_search() logging.info(u'click is success') except: logging.error(u'cannot find button') try: search.check_link() logging.info(u'link is here') except: logging.error(u'cannot find link') assert "No results found." not in driver.page_source