def create_volume(self, create_volume, row): """ Create volume must be referenced by index using the secondary_locator_index since the a tag does not have defining attributes. The create volume button is under the first li tag under ul.dropdown-menu for the specified row. The parameter is explained in the tables.bind_row_action docstring. """ create_volume.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CREATE_VOLUME_FROM_IMAGE_FORM_FIELDS)
def settings_form(self): src_elem = self._get_element(*self._settings_form_locator) return forms.FormRegion(self.driver, src_elem=src_elem, field_mappings=self.SETTINGS_FORM_FIELDS)
def extend_volume(self, extend_button, row): extend_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.EXTEND_VOLUME_FORM_FIELDS)
def change_volume_type(self, change_button, row): change_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.CHANGE_VOLUME_TYPE_FORM_FIELDS)
def edit_group(self, edit_button, row): edit_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.MODIFY_GROUP_FORM_FIELDS)
def upload_patches(self, upload_button): upload_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.form_fields)
def detach_volume(self, detach_button, row): detach_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.ATTACH_VOLUME_FORM_FIELDS)
def edit_ptp(self, edit_button): edit_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.EDIT_PTP_FORM_FIELDS)
def edit_consumer(self, edit_consumer_button, row): edit_consumer_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.EDIT_CONSUMER_FORM_FIELDS)
def import_namespace(self, create_button): create_button.click() return forms.FormRegion( self.driver, field_mappings=self.CREATE_NAMESPACE_FORM_FIELDS)
def create_interface(self, create_button): create_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CREATE_INTERFACE_FORM_FIELDS)
def change_password(self, change_password_button, row): change_password_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CHANGE_PASSWORD_FORM_FIELDS)
def create_group(self, create_button): create_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CREATE_SERVER_GROUP_FORM_FIELDS)
def disable_service(self, disable_button, row): disable_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.DISABLE_SERVICE_FORM_FIELDS)
def edit_system(self, edit_button, row): edit_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.EDIT_SYSTEM_FORM_FIELDS)
def create_encryption(self, create_button, row): create_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CREATE_QOS_SPEC_FORM_FIELDS)
def update_address_pool(self, update_button, row): update_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.ADDRESS_POOL_FORM_FIELDS)
def manage_qos_spec_association(self, manage_button, row): manage_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.MANAGE_QOS_SPEC_ASSOCIATION_FORM_FIELDS)
def associate_floating_ip(self, associate_button, row): associate_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.ASSOCIATE_FLOATING_IP_FORM_FIELDS)
def password_form(self): src_elem = self._get_element(*self._password_form_locator) return forms.FormRegion( self.driver, src_elem=src_elem, field_mappings=self.CHANGE_PASSWORD_FORM_FIELDS)
def rebuild_instance(self, rebuild_button, row): rebuild_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.REBUILD_INSTANCE_FORM_FIELDS)
def edit_network(self, edit_button, row): edit_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.EDIT_NETWORK_FORM_FIELDS)
def create_strategy(self, create_button): create_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CREATE_STRATEGY_FORM_FIELDS)
def create_subnet(self, create_button, row): create_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.CREATE_SUBNET_FORM_FIELDS)
def create_volume(self, create_button): create_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CREATE_VOLUME_FORM_FIELDS)
def create_rule(self, create_button): create_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.ADD_RULE_FORM_FIELDS)
def create_snapshot(self, create_snapshot_button, row): create_snapshot_button.click() self.wait_till_spinner_disappears() return forms.FormRegion( self.driver, field_mappings=self.CREATE_VOLUME_SNAPSHOT_FORM_FIELDS)
def edit_ceph_storage_pools(self, edit_button, row): edit_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.EDIT_POOL_QUOTAS_FIELDS)
def upload_to_image(self, upload_button, row): upload_button.click() self.wait_till_spinner_disappears() return forms.FormRegion(self.driver, field_mappings=self.UPLOAD_VOLUME_FORM_FIELDS)
def manage_hosts(self, manage_button, row): manage_button.click() return forms.FormRegion(self.driver, field_mappings=self.MANAGE_HOSTS_FORM_FIELDS)