@markers.webview
@markers.smoke
@markers.test_case('C176234')
@markers.nondestructive
def test_get_this_book(webview_base_url, selenium):
    home = Home(selenium, webview_base_url).open()
    book = home.featured_books.openstax_list[32]
    content = book.click_book_cover()
    button_displayed = content.is_get_this_book_button_displayed
    if button_displayed:
        get_this_book = content.click_get_this_book_button()
        pdf_displayed = get_this_book.is_pdf_link_displayed
        offline_zip_displayed = get_this_book.is_offline_zip_link_displayed
    downloads = content.content_footer.click_downloads_tab()
    if (not button_displayed):
        assert (not downloads.is_any_available)
        pytest.skip('No files available to download: "Get This Book!" button not present.')
    else:
        assert (pdf_displayed or offline_zip_displayed)
    if pdf_displayed:
        assert downloads.is_pdf_available
    if offline_zip_displayed:
        assert downloads.is_offline_zip_available
@markers.webview
@markers.smoke
@markers.test_case('C176234')
@markers.nondestructive
def test_get_this_book(webview_base_url, selenium):
    home = Home(selenium, webview_base_url).open()
    book = home.featured_books.openstax_list[32]
    content = book.click_book_cover()
    button_displayed = content.is_get_this_book_button_displayed
    if button_displayed:
        get_this_book = content.click_get_this_book_button()
        pdf_displayed = get_this_book.is_pdf_link_displayed
        offline_zip_displayed = get_this_book.is_offline_zip_link_displayed
    downloads = content.content_footer.click_downloads_tab()
    if (not button_displayed):
        assert (not downloads.is_any_available)
        pytest.skip('No files available to download: "Get This Book!" button not present.')
    else:
        assert (pdf_displayed or offline_zip_displayed)
    if pdf_displayed:
        assert downloads.is_pdf_available
    if offline_zip_displayed:
        assert downloads.is_offline_zip_available