Пример #1
0
def clear_search(browser, document):
    clear_input(browser, locate_input,
                document.input_attributes["Reception Number"],
                "reception number input", document)
    clear_input(browser, locate_input, document.input_attributes["Volume"],
                "volume input", document)
    clear_input(browser, locate_input, document.input_attributes["Page"],
                "page input", document)
Пример #2
0
def clear_search(browser, abstract, document):
    if document.type == "document_number":
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs["Reception Number"],
                    "document search field", document)
    elif document.type == "book_and_page":
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs["Book"], "book search field",
                    document)
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs["Page"], "page search field",
                    document)
Пример #3
0
def clear_search(browser, abstract, document):
    if document.type == "document_number":
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs["Reception Number"],
                    "document search field", document)
    elif document.type == "name":
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs["Name"], "name search field",
                    document)
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs["Start Date"],
                    "name search start date field", document)
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs["End Date"],
                    "name search end date field", document)
    else:
        print(
            f'Abstractor path has not yet been developed to "clear_search" for document type "\
               {document.type}", please review...')
        input()
Пример #4
0
def clear_search(browser, abstract, document):
    for id in abstract.county.inputs:
        clear_input(browser, locate_input, abstract.county.inputs[id],
                    f'{id} Input', document)
Пример #5
0
def clear_search(browser, abstract, document):
    clear_input(browser, locate_element_by_id,
                abstract.county.inputs["Reception Number"],
                "reception number input", document)
Пример #6
0
def clear_search(browser, document):
    for id in document.input_attributes:
        clear_input(browser, locate_input, document.input_attributes[id], f'{id} Input', document)
Пример #7
0
def clear_search(browser, abstract, document):
    switch_to_search_input_frame(browser, abstract)
    if document.type == "document_number":
        clear_input(browser, locate_element_by_class_name,
                    abstract.county.inputs["Reception Number"],
                    "document search field", document)
Пример #8
0
def clear_search(browser, abstract, document):
    for attribute in abstract.county.inputs:
        clear_input(browser, locate_element_by_id,
                    abstract.county.inputs[attribute], f'{attribute} Input',
                    document)