Exemple #1
0
 def __init__(self, driver):
     super(ControlsModal, self).__init__(driver)
     # labels
     self.modal_title = base.Label(self.modal_elem,
                                   self._locators.MODAL_TITLE)
     self.title = base.Label(self.modal_elem, self._locators.TITLE)
     self.description = base.Label(self.modal_elem,
                                   self._locators.DESCRIPTION)
     self.test_plan = base.Label(self.modal_elem, self._locators.TEST_PLAN)
     self.notes = base.Label(self.modal_elem, self._locators.NOTES)
     self.code = base.Label(self.modal_elem, self._locators.CODE)
     self.kind_or_nature = base.Label(self.modal_elem,
                                      self._locators.KIND_OR_NATURE)
     self.fraud_related = base.Label(self.modal_elem,
                                     self._locators.FRAUD_RELATED)
     self.frequency = base.Label(self.modal_elem, self._locators.FREQUENCY)
     self.assertions = base.Label(self.modal_elem,
                                  self._locators.ASSERTIONS)
     self.admin = base.Label(self.modal_elem, self._locators.ADMIN)
     self.significance = base.Label(self.modal_elem,
                                    self._locators.SIGNIFICANCE)
     self.type_or_means = base.Label(self.modal_elem,
                                     self._locators.TYPE_OR_MEANS)
     self.categories = base.Label(self.modal_elem,
                                  self._locators.CATEGORIES)
     self.state = base.Label(self.modal_elem, self._locators.STATE)
     self.ui_description = base.Iframe(self.modal_elem.parent,
                                       self._locators.UI_DESCRIPTION)
     self.ui_test_plan = base.Iframe(self.modal_elem.parent,
                                     self._locators.UI_TEST_PLAN)
     self.ui_notes = base.Iframe(self.modal_elem.parent,
                                 self._locators.UI_NOTES)
     self.ui_code = base.TextInputField(self.modal_elem,
                                        self._locators.UI_CODE)
     # multi input fields
     self.ref_url = base.MultiInputField(self.modal_elem.parent,
                                         self._locators.REF_URL_CSS)
     # datepickers
     self.ui_effective_date = base.DatePicker(
         self.modal_elem, self._locators.EFFECTIVE_DATE,
         self._locators.DATEPICKER_EFFECTIVE_DATE)
     # dropdowns
     self.ui_kind_or_nature = base.Dropdown(
         self.modal_elem, self._locators.DROPDOWN_KIND_OR_NATURE)
     self.ui_fraud_related = base.Dropdown(
         self.modal_elem, self._locators.DROPDOWN_FRAUD_RELATED)
     self.ui_type_or_means = base.Dropdown(
         self.modal_elem, self._locators.DROPDOWN_TYPE_OR_MEANS)
     self.ui_frequency = base.Dropdown(self.modal_elem,
                                       self._locators.DROPDOWN_FREQUENCY)
     # selectable lists
     self.selectable_assertions = base.Selectable(
         self.modal_elem, self._locators.SELECTABLE_ASSERTIONS)
     self.selectable_categories = base.Selectable(
         self.modal_elem, self._locators.SELECTABLE_CATEGORIES)
     # buttons
     self.button_add_owner = base.Button(self.modal_elem,
                                         self._locators.BUTTON_ADD_OWNER)
     self.button_hide_all_optional_fields = base.Button(
         self.modal_elem, self._locators.BUTTON_HIDE_ALL_OPTIONAL_FIELDS)
Exemple #2
0
 def __init__(self, driver):
   super(ControlsModal, self).__init__(driver)
   # labels
   self.modal_title = base.Label(driver, self._locators.MODAL_TITLE)
   self.title = base.Label(driver, self._locators.TITLE)
   self.description = base.Label(driver, self._locators.DESCRIPTION)
   self.test_plan = base.Label(driver, self._locators.TEST_PLAN)
   self.notes = base.Label(driver, self._locators.NOTES)
   self.code = base.Label(driver, self._locators.CODE)
   self.kind_or_nature = base.Label(driver, self._locators.KIND_OR_NATURE)
   self.fraud_related = base.Label(driver, self._locators.FRAUD_RELATED)
   self.frequency = base.Label(driver, self._locators.FREQUENCY)
   self.assertions = base.Label(driver, self._locators.ASSERTIONS)
   self.principal_assessor = base.Label(
       driver, self._locators.PRINCIPAL_ASSESSOR)
   self.secondary_assessor = base.Label(
       driver, self._locators.SECONDARY_ASSESSOR)
   self.owner = base.Label(driver, self._locators.OWNER)
   self.primary_contact = base.Label(driver, self._locators.PRIMARY_CONTACT)
   self.secondary_contact = base.Label(
       driver, self._locators.SECONDARY_CONTACT)
   self.control_url = base.Label(driver, self._locators.CONTROL_URL)
   self.reference_url = base.Label(driver, self._locators.REFERENCE_URL)
   self.significance = base.Label(driver, self._locators.SIGNIFICANCE)
   self.type_or_means = base.Label(driver, self._locators.TYPE_OR_MEANS)
   self.categories = base.Label(driver, self._locators.CATEGORIES)
   self.state = base.Label(driver, self._locators.STATE)
   self.ui_description = base.Iframe(driver, self._locators.UI_DESCRIPTION)
   self.ui_test_plan = base.Iframe(driver, self._locators.UI_TEST_PLAN)
   self.ui_notes = base.Iframe(driver, self._locators.UI_NOTES)
   self.ui_code = base.TextInputField(driver, self._locators.UI_CODE)
   self.ui_primary_contact = base.TextInputField(
       driver, self._locators.UI_PRIMARY_CONTACT)
   self.ui_secondary_contact = base.TextInputField(
       driver, self._locators.UI_SECONDARY_CONTACT)
   self.ui_control_url = base.TextInputField(
       driver, self._locators.UI_CONTROL_URL)
   self.ui_reference_url = base.TextInputField(
       driver, self._locators.UI_REFERENCE_URL)
   # datepickers
   self.ui_effective_date = base.DatePicker(
       driver, self._locators.EFFECTIVE_DATE,
       self._locators.DATEPICKER_EFFECTIVE_DATE)
   self.ui_stop_date = base.DatePicker(
       driver, self._locators.STOP_DATE, self._locators.DATEPICKER_STOP_DATE)
   # dropdowns
   self.ui_kind_or_nature = base.Dropdown(
       driver, self._locators.DROPDOWN_KIND_OR_NATURE)
   self.ui_fraud_related = base.Dropdown(
       driver, self._locators.DROPDOWN_FRAUD_RELATED)
   self.ui_type_or_means = base.Dropdown(
       driver, self._locators.DROPDOWN_TYPE_OR_MEANS)
   self.ui_frequency = base.Dropdown(
       driver, self._locators.DROPDOWN_FREQUENCY)
   # selectable lists
   self.selectable_assertions = base.Selectable(
       driver, self._locators.SELECTABLE_ASSERTIONS)
   self.selectable_categories = base.Selectable(
       driver, self._locators.SELECTABLE_CATEGORIES)
   # buttons
   self.button_add_owner = base.Button(
       driver, self._locators.BUTTON_ADD_OWNER)
   self.button_hide_all_optional_fields = base.Button(
       driver, self._locators.BUTTON_HIDE_ALL_OPTIONAL_FIELDS)