from ui_automation_tests.pages.BasePage import BasePage


class AttachDocumentPage(BasePage):
    FILE = "file"  # ID
    DESCRIPTION = "description"  # ID
    LINK_SKIP_UPLOAD_ID = "return_to_application"

    def choose_file(self, file_location_path):
        self.driver.find_element_by_id(self.FILE).send_keys(file_location_path)

    def enter_description(self, description):
        self.driver.find_element_by_id(self.DESCRIPTION).send_keys(description)

    def click_save_and_return_to_overview_link(self):
        self.driver.find_element_by_id(self.LINK_SKIP_UPLOAD_ID).click()

1378a899b297abe3f042958a80d568c8e2bc8ae8
<mask token>


class AttachDocumentPage(BasePage):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def enter_description(self, description):
        self.driver.find_element_by_id(self.DESCRIPTION).send_keys(description)

    def click_save_and_return_to_overview_link(self):
        self.driver.find_element_by_id(self.LINK_SKIP_UPLOAD_ID).click()

<mask token>


class AttachDocumentPage(BasePage):
    <mask token>
    <mask token>
    <mask token>

    def choose_file(self, file_location_path):
        self.driver.find_element_by_id(self.FILE).send_keys(file_location_path)

    def enter_description(self, description):
        self.driver.find_element_by_id(self.DESCRIPTION).send_keys(description)

    def click_save_and_return_to_overview_link(self):
        self.driver.find_element_by_id(self.LINK_SKIP_UPLOAD_ID).click()

<mask token>


class AttachDocumentPage(BasePage):
    FILE = 'file'
    DESCRIPTION = 'description'
    LINK_SKIP_UPLOAD_ID = 'return_to_application'

    def choose_file(self, file_location_path):
        self.driver.find_element_by_id(self.FILE).send_keys(file_location_path)

    def enter_description(self, description):
        self.driver.find_element_by_id(self.DESCRIPTION).send_keys(description)

    def click_save_and_return_to_overview_link(self):
        self.driver.find_element_by_id(self.LINK_SKIP_UPLOAD_ID).click()

from ui_automation_tests.pages.BasePage import BasePage


class AttachDocumentPage(BasePage):
    FILE = 'file'
    DESCRIPTION = 'description'
    LINK_SKIP_UPLOAD_ID = 'return_to_application'

    def choose_file(self, file_location_path):
        self.driver.find_element_by_id(self.FILE).send_keys(file_location_path)

    def enter_description(self, description):
        self.driver.find_element_by_id(self.DESCRIPTION).send_keys(description)

    def click_save_and_return_to_overview_link(self):
        self.driver.find_element_by_id(self.LINK_SKIP_UPLOAD_ID).click()

from ui_automation_tests.pages.BasePage import BasePage


class AttachDocumentPage(BasePage):
    FILE = "file"  # ID
    DESCRIPTION = "description"  # ID
    LINK_SKIP_UPLOAD_ID = "return_to_application"

    def choose_file(self, file_location_path):
        self.driver.find_element_by_id(self.FILE).send_keys(file_location_path)

    def enter_description(self, description):
        self.driver.find_element_by_id(self.DESCRIPTION).send_keys(description)

    def click_save_and_return_to_overview_link(self):
        self.driver.find_element_by_id(self.LINK_SKIP_UPLOAD_ID).click()
