def test_menu_title(chrome_browser):
    home_page = HomePage(driver=chrome_browser)

    print(colored(' Step 1: open {} ', 'blue').format(str(home_page.url)))
    chrome_browser.get('https://www.imdb.com')

    print(colored('Step 2: Tap on first movie on opening week  ', 'blue'))
    home_page.menu_button.click()

    print(colored('Step 3: verify movie title ', 'blue'))
    text = home_page.menu_list_DVD.text

    print(colored('Step 4: verify movie title asset', 'blue'))
    Logger.get_instance().log_assert(text is not None,
                                     'Failed finding menu text')
def test_click_first_button(chrome_browser):
    result_page = ResultPage(driver=chrome_browser)
    home_page = HomePage(driver=chrome_browser)

    print(colored('Step 1: open {} ', 'blue').format(str(home_page.url)))
    chrome_browser.get('https://www.imdb.com')

    print(colored('Step 2: search homeland ', 'blue'))
    home_page.search_bar.type_text('homeland')

    print(colored('Step 3: Click on search button ', 'blue'))
    home_page.search_button.click()

    print(colored('Step 4: Verify result header', 'blue'))
    test = result_page.result_header.text
    print (test)
    Logger.get_instance().log_assert(test is not None, 'Failed finding search header')