Beispiel #1
0
 def open_create(self):
     """Clicks on Create button on Tree View to open new object creation modal.
 """
     base.Button(self._driver, self._locators.CREATE_BTN_CSS).click()
     if self.obj_name == objects.ASSESSMENT_TEMPLATES:
         unified_mapper.CloneOrCreateAssessmentTemplatesModal(
             self._driver, self.obj_name).create_asmt_tmpl_btn.click()
Beispiel #2
0
 def open_create(self):
   """Clicks on Create button on Tree View to open new object creation modal.
   """
   self._browser.element(class_name="tree-action").link(text="Create").click()
   if self.obj_name == objects.ASSESSMENT_TEMPLATES:
     unified_mapper.CloneOrCreateAssessmentTemplatesModal(
         self._driver, self.obj_name).create_asmt_tmpl_btn.click()
Beispiel #3
0
    def open_create(self):
        """Click to Create button on Tree View to open new object creation modal.

    Return: If obj_name == 'assessment_templates' then
    lib.page.modal.unified_mapper."CloneOrCreateAssessmentTemplatesModal" else
    lib.page.modal.create_new_object."create_obj_cls
    """
        base.Button(self._driver, self._locators.CREATE_BTN_CSS).click()
        if self.obj_name == objects.ASSESSMENT_TEMPLATES:
            unified_mapper.CloneOrCreateAssessmentTemplatesModal(
                self._driver, self.obj_name).create_asmt_tmpl_btn.click()
        return self.create_obj_cls(self._driver)