class MapTagsAllView(RegionView): """Map Tags list view""" table = VanillaTable('//div[@id="settings_label_tag_mapping"]/table') add_button = Button('Add') @property def is_displayed(self): return (self.map_tags.is_active() and self.table.is_displayed)
class CompanyCategoriesAllView(RegionView): """Company Categories List View""" add_button = Button('Add') table = VanillaTable('//div[@id="settings_co_categories"]/table') @property def is_displayed(self): return (self.tags.is_active() and self.company_categories.is_active())
class ReplicationGlobalView(ReplicationView): """ Replication Global setup View""" add_subscription = Button('Add Subscription') subscription_table = VanillaTable( '//form[@id="form_div"]//table[contains(@class, "table")]') @property def is_displayed(self): return (self.in_region and self.add_subscription.is_displayed)
class CompanyTagsAllView(RegionView): """Company Tags list view""" category_dropdown = BootstrapSelect('classification_name') table = VanillaTable('//div[@id="classification_entries_div"]/table') add_button = Button('Add') cancel_button = Button('Cancel') @property def is_displayed(self): return (self.companycategories.is_active() and self.table.is_displayed)
class ReplicationGlobalView(ReplicationView): """ Replication Global setup View""" add_subscription = Button('Add Subscription') subscription_table = VanillaTable( '//form[@id="form_div"]//table[contains(@class, "table")]', column_widgets={ "Actions": Button("Update"), 10: Kebab( locator='//td[10]/div[contains(@class, "dropdown-kebab-pf")]') }) @property def is_displayed(self): return (self.in_region and self.add_subscription.is_displayed)