Exemple #1
0
def enter_credentials(browser, abstract):
    enter_input_value(browser, locate_element_by_id,
                      abstract.county.credentials[0], "username input",
                      abstract.county.credentials[1])
    enter_input_value(browser, locate_element_by_id,
                      abstract.county.credentials[2], "password input",
                      abstract.county.credentials[3])
    click_button(browser, locate_element_by_name,
                 abstract.county.buttons["Login"], "login button")
Exemple #2
0
def handle_document_value_numbers(browser, abstract, document):
    value = document.document_value()
    if document.type == "document_number":
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Reception Number"],
                          "reception number input", value, document)
    else:
        print(
            f'Unable to search "{document.extrapolate_value()}" document type "{document.type}".'
        )
        print("Please press enter after reviewing the search parameters...")
        input()
Exemple #3
0
def handle_document_value_numbers(browser, abstract, document):
    value = document.value
    if document.type == "document_number":
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Reception Number"],
                          "reception number input", value, document)
    else:
        print(
            f'Unable to search document type "{document.type}", '
            f'a new search path needs to be developed in order to continue.\n')
        print("Please press enter after reviewing the search parameters...")
        input()
Exemple #4
0
def enter_credentials(browser):
    enter_input_value(
        browser,
        locate_input,
        credentials[0],  # Submit Username
        "username input",
        credentials[1])
    enter_input_value(
        browser,
        locate_input,
        credentials[2],  # Submit Password
        "password input",
        credentials[3])
    click_button(browser, locate_input, credentials[4],
                 'submit')  # Click Login Button
Exemple #5
0
def handle_document_value_numbers(browser, abstract, document):
    if document.type == "document_number":
        enter_input_value(browser, locate_input,
                          abstract.county.inputs["Reception Number"],
                          "reception number input", document.document_value(),
                          document)
    elif document.type == "name":
        enter_input_value(browser, locate_input,
                          abstract.county.inputs["Name"], "name input",
                          document.document_value(), document)
        enter_input_value(browser, locate_input,
                          abstract.county.inputs["Start Date"],
                          "start date input", abstract.start_date, document)
        enter_input_value(browser, locate_input,
                          abstract.county.inputs["End Date"], "end date input",
                          abstract.end_date, document)
def enter_name_value(browser, abstract, document):
    enter_input_value(browser, locate_input,
                      abstract.county.inputs["Start Date"], "start date input",
                      abstract.start_date, document)
    enter_input_value(browser, locate_input,
                      abstract.county.inputs["End Date"], "end date input",
                      abstract.end_date, document)
    enter_input_value(browser, locate_input, abstract.county.inputs["Name"],
                      "name input", abstract.search_name, document)
Exemple #7
0
def handle_document_value_numbers(browser, abstract, document):
    value = document.document_value()
    if document.type == "document_number":
        enter_input_value(browser, locate_input,
                          abstract.county.inputs["Reception Number"],
                          "reception number input", value, document)
    elif document.type == "book_and_page":
        enter_input_value(browser, locate_input,
                          abstract.county.inputs["Book"], "book input",
                          value[0], document)
        enter_input_value(browser, locate_input,
                          abstract.county.inputs["Page"], "page input",
                          value[1], document)
Exemple #8
0
def handle_document_value_numbers(browser, abstract, document):
    if document.type == "document_number":
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Reception Number"],
                          "document search field", document.document_value())
    elif document.type == "name":
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Name"], "name search field",
                          document.document_value())
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Start Date"],
                          "name search start field", document.document_value())
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["End Date"],
                          "name search end date field",
                          document.document_value())
    else:
        print(
            f'Abstractor path has not yet been developed to "handle_document_value_numbers" for document type "\
               {document.type}", please review...')
        input()
Exemple #9
0
def handle_document_value_numbers(browser, document):
    value = document.document_value()
    if document.type == 'document_number':
        enter_input_value(browser, locate_input, document.input_attributes["Reception Number"],
                          "reception number input", value, document)
    elif document.type == 'volume_and_page':
        enter_input_value(browser, locate_input, document.input_attributes["Volume"],
                          "volume input", value[0], document)
        enter_input_value(browser, locate_input, document.input_attributes["Page"],
                          "page input", value[1], document)
    else:
        print(f'Unable to search document type "{document.type}", '
              f'a new search path needs to be developed in order to continue.\n')
        print("Please press enter after reviewing the search parameters...")
        input()
Exemple #10
0
def enter_input(browser, abstract, document):
    if document.type == "document_number":
        # dropped a 'scroll_into_view' before entering inputs => update the 'enter_input_value' function accordingly
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Reception Number"],
                          "document search field", document.document_value())
    elif document.type == "book_and_page":
        book, page = document.document_value()
        # dropped a 'scroll_into_view' before entering inputs => update the 'enter_input_value' function accordingly
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Book"], "book search field",
                          book, document)
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Page"], "page search field",
                          page, document)
Exemple #11
0
def handle_search_values(browser, abstract, document):
    if abstract.program == "legal":
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Section"], "section input",
                          abstract.legal[0])
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Township"], "township input",
                          abstract.legal[1])
        enter_input_value(browser, locate_element_by_id,
                          abstract.county.inputs["Range"], "range input",
                          abstract.legal[2])
    else:
        print(
            f'Abstractor path has not yet been developed to "handle search values" for document type "\
               {document.type}", please review...')
        input()
Exemple #12
0
def enter_input(browser, abstract, document):
    if document.type == 'document_number':
        enter_input_value(browser, locate_element_by_class_name,
                          abstract.county.inputs["Reception Number"],
                          "document search field", document)