Exemple #1
0
 def __init__(self, driver, base_url):
     super().__init__(driver, base_url, "/host")
     self.header = PageHeader(self.driver, self.base_url)
     self.footer = PageFooter(self.driver, self.base_url)
     self.table = CommonTableObj(self.driver, self.base_url,
                                 HostListLocators.HostTable)
     self.host_popup = HostCreatePopupObj(self.driver, self.base_url)
Exemple #2
0
 def __init__(self, driver, base_url):
     if self.MENU_SUFFIX is None:
         raise AttributeError('You should explicitly set MENU_SUFFIX in class definition')
     super().__init__(driver, base_url, "/admin/" + self.MENU_SUFFIX)
     self.header = PageHeader(self.driver, self.base_url)
     self.footer = PageFooter(self.driver, self.base_url)
     self.config = CommonConfigMenuObj(self.driver, self.base_url)
     self.table = CommonTableObj(self.driver, self.base_url)
     self.toolbar = CommonToolbar(self.driver, self.base_url)
Exemple #3
0
 def __init__(self, driver, base_url, provider_id: int):
     if self.MENU_SUFFIX is None:
         raise AttributeError('You should explicitly set MENU_SUFFIX in class definition')
     super().__init__(driver, base_url, "/provider/{provider_id}/" + self.MENU_SUFFIX, provider_id=provider_id)
     self.header = PageHeader(self.driver, self.base_url)
     self.footer = PageFooter(self.driver, self.base_url)
     self.config = CommonConfigMenuObj(self.driver, self.base_url)
     self.provider_id = provider_id
     self.toolbar = CommonToolbar(self.driver, self.base_url)
     self.table = CommonTableObj(self.driver, self.base_url)
     self.group_config = GroupConfigList(self.driver, self.base_url)
Exemple #4
0
 def __init__(self, driver, base_url, cluster_id: int, service_id: int,
              component_id: int):
     if self.MENU_SUFFIX is None:
         raise AttributeError(
             'You should explicitly set MENU_SUFFIX in class definition')
     super().__init__(
         driver,
         base_url,
         "/cluster/{cluster_id}/service/{service_id}/component/{component_id}/"
         + self.MENU_SUFFIX,
         cluster_id=cluster_id,
         service_id=service_id,
         component_id=component_id,
     )
     self.cluster_id = cluster_id
     self.service_id = service_id
     self.component_id = component_id
     self.header = PageHeader(self.driver, self.base_url)
     self.footer = PageFooter(self.driver, self.base_url)
     self.config = CommonConfigMenuObj(self.driver, self.base_url)
     self.toolbar = CommonToolbar(self.driver, self.base_url)
     self.table = CommonTableObj(self.driver, self.base_url)
     self.group_config = GroupConfigList(self.driver, self.base_url)
Exemple #5
0
 def __init__(self, driver, base_url):
     super().__init__(driver, base_url, "/task")
     self.header = PageHeader(self.driver, self.base_url)
     self.footer = PageFooter(self.driver, self.base_url)
     self.table = CommonTableObj(self.driver, self.base_url,
                                 TaskListLocators.Table)
Exemple #6
0
 def __init__(self, driver, base_url):
     super().__init__(driver, base_url, "/cluster")
     self.header = PageHeader(self.driver, self.base_url)
     self.footer = PageFooter(self.driver, self.base_url)
     self.table = CommonTableObj(self.driver, self.base_url,
                                 ClusterListLocators.ClusterTable)