Beispiel #1
0
def search(browser, abstract, document=None):
    if abstract.number_search_results:
        handle_continuing_collection_search(browser, abstract, document)
    else:
        open_url(browser, abstract.county.urls["Search Page"],
                 abstract.county.titles["Search Page"], "search page")
        execute_search(browser, abstract, document)
Beispiel #2
0
def login(browser, abstract):
    open_url(browser, abstract.county.urls["Login Page"],
             abstract.county.titles["Login Page"], "county site")
    enter_credentials(browser, abstract)
    check_for_redirect(browser, abstract)
    open_url(browser, abstract.county.urls["Home Page"],
             abstract.county.titles["Home Page"], "county site")
Beispiel #3
0
def open_download_page(browser, document):
    page_image = locate_element(browser,
                                document.search_attributes["Page Image Id"],
                                "page image",
                                document=document)
    page_source = page_image.get_attribute('src')
    open_url(browser, page_source, page_image_title, "page image", document)
Beispiel #4
0
def search(browser, document):
    open_url(browser, search_url, search_title, "document search", document)  # Open Document Search
    # verify_document_search_page_loaded(browser, search_url, open_document_search)
    clear_search(browser, document)
    handle_document_value_numbers(browser, document)  # Enter Value Numbers
    click_button(browser, locate_input, document.button_attributes["Submit Button"],
                 "submit button", document)  # Execute Search
Beispiel #5
0
def search(browser, abstract, document):
    open_url(browser, abstract.county.urls["Search Page"],
             abstract.county.titles["Search Page"], "document search page")
    check_login_status(browser, abstract)
    if not check_for_error(browser, abstract, document, 'search'):
        clear_search(browser, abstract, document)
        naptime()  # Consider testing without this nap to see if necessary
        execute_search(browser, abstract, document)
Beispiel #6
0
def open_search(browser, abstract, document):
    if document.type == "document_number":
        open_url(browser, abstract.county.urls['Document Search'],
                 abstract.county.titles['Document Search'], 'search page',
                 document)
    elif document.type == "name":
        open_url(browser, abstract.county.urls['Name Search'],
                 abstract.county.titles['Name Search'], 'document search page',
                 document)
Beispiel #7
0
def login(browser, abstract):
    open_url(browser, abstract.county.urls["Login"],
             abstract.county.titles["Login"], "county site")
    enter_credentials(browser, abstract)
    open_search(browser, abstract)
    click_button(
        browser,  # Handle Disclaimer
        locate_element_by_id,
        abstract.county.buttons["Disclaimer"],
        "login disclaimer")
Beispiel #8
0
def execute_login_process(browser, abstract):
    open_url(browser, abstract.county.urls["Home Page"],
             abstract.county.titles["Home Page"], "county site")
    click_button(browser, locate_element_by_id,
                 abstract.county.buttons["Disclaimer"], "disclaimer button")
    click_button(browser, locate_element_by_class_name,
                 abstract.county.buttons["Login Prompt"],
                 "login button prompt")
    enter_credentials(browser, abstract)
    confirm_login(browser, abstract)
    return True
Beispiel #9
0
def handle_document_search(browser, abstract, document):
    volume = document.document_value()[0]
    if volume == abstract.last_document(document).document_value()[0] and len(
            abstract.document_list) > 1:
        download_early_document_image(browser, abstract, document)
    else:
        open_url(browser, early_search_url, early_search_title,
                 "old document search")
        clear_search(browser, document)
        search_early_document(browser, document)
        handle_search_results(browser, abstract, document)
Beispiel #10
0
def search(browser, abstract, document):
    open_url(browser, abstract.county.urls["Search Page"],
             abstract.county.titles["Search Page"], "document search page")
    clear_search(browser, abstract, document)
    naptime()  # Consider testing without this nap to see if necessary
    execute_search(browser, abstract, document)
Beispiel #11
0
def account_login(browser):
    open_url(browser, login_url, login_title, "county site")  # Open County Site
    enter_credentials(browser)  # Enter Login Information
    verify_login(browser)  # Verify Login
Beispiel #12
0
def search(browser, document):
    open_url(browser, search_url, search_title, 'document search page',
             document)
    # verify_document_search_page_loaded(browser, document)
    clear_search(browser, document)
    document_search(browser, document)
Beispiel #13
0
def open_site(browser, abstract):
    open_url(browser, abstract.county.urls["Home Page"],
             abstract.county.titles["Home Page"], "county site")
    input("Press enter to login...")
Beispiel #14
0
def account_login(browser):
    open_url(browser, home_page_url, home_page_title,
             "county site")  # Open County Site
    open_url(browser, login_url, login_title, "login")  # Open Login Prompt
    enter_credentials(browser)  # Enter Login Information
    verify_login(browser, account_login)  # Verify Login
Beispiel #15
0
def open_document_description(browser, abstract, document, result):
    document_link = get_document_link(abstract, result, document)
    document.description_link = get_direct_link(document_link)
    open_url(browser, document.description_link,
             abstract.county.titles["Document Description"],
             "document description", document)
Beispiel #16
0
def login(browser, abstract):
    open_url(browser, abstract.county.urls["Home"],
             abstract.county.titles["Home"], "county site")
    handle_disclaimer(browser, abstract)
def open_result_link(browser, abstract, document, result):
    document_link = access_result_link(abstract, document, result)
    open_url(browser, document_link,
             abstract.county.titles["Document Description"],
             "document description", document)
    return True
Beispiel #18
0
def login(browser, abstract):
    open_url(browser, abstract.county.urls["Home"],
             abstract.county.titles["Home"], "county site")
    click_button(browser, locate_element_by_name,
                 abstract.county.buttons["Login"], "login button")
Beispiel #19
0
def search(browser, abstract, document):
    open_url(browser, abstract.county.urls["Search"],
             abstract.county.titles["Search"], "document search page")
    clear_search(browser, abstract, document)
    execute_search(browser, abstract, document)