public function expandFieldDefinition(string $fieldName): void
    {
        $container = $this->context->findElement($this->getFieldDefinitionContainerLocator(sprintf($this::NEW_FIELD_TITLE_PATTERN, EzFieldElement::getFieldInternalNameByName($fieldName))));
        Assert::assertNotNull($container, sprintf('Definition for field %s not found', $fieldName));

        if (strpos($container->getAttribute('class'), $this->fields['fieldCollapsed']) !== false) {
            $container->find('css', $this->fields['fieldDefinitionToggler'])->click();
        }
    }
public function expandFieldDefinition(string $fieldName): void
    {
        $container = $this->context->findElement($this->getFieldDefinitionContainerLocator(sprintf($this::NEW_FIELD_TITLE_PATTERN, EzFieldElement::getFieldInternalNameByName($fieldName))));
        Assert::assertNotNull($container, sprintf('Definition for field %s not found', $fieldName));

        if (strpos($container->getAttribute('class'), $this->fields['fieldCollapsed']) !== false) {
            $container->find('css', $this->fields['fieldDefinitionToggler'])->click();
        }
    }
public function expandFieldDefinition ( string $ fieldName ) : void { $ container = $ this -> context -> findElement ( $ this -> getFieldDefinitionContainerLocator ( sprintf ( $ this :: NEW_FIELD_TITLE_PATTERN , EzFieldElement :: getFieldInternalNameByName ( $ fieldName ) ) ) ) ; Assert :: assertNotNull ( $ container , sprintf ( 'Definition for field %s not found' , $ fieldName ) ) ; if ( strpos ( $ container -> getAttribute ( 'class' ) , $ this -> fields [ 'fieldCollapsed' ] ) !== false ) { $ container -> find ( 'css' , $ this -> fields [ 'fieldDefinitionToggler' ] ) -> click ( ) ; } }
Expand field definition if it is collapsed.

@param string $fieldName
Expand field definition if it is collapsed .