src/Traits/CssSelector/FormCssSelector.php
public static function getInputByNameSelector($formName, $fieldName)
    {
        $formSelector = static::getFormByNameSelector($formName);
        $fieldName = trim($fieldName);

        if (empty($formSelector) || empty($fieldName)) {
            return '';
        }

        return sprintf('%s input[name="%s"]', $formSelector, $fieldName);
    }
public static function getInputByNameSelector($formName, $fieldName)
    {
        $formSelector = static::getFormByNameSelector($formName);
        $fieldName = trim($fieldName);

        if (empty($formSelector) || empty($fieldName)) {
            return '';
        }

        return sprintf('%s input[name="%s"]', $formSelector, $fieldName);
    }
public static function getInputByNameSelector ( $ formName , $ fieldName ) { $ formSelector = static :: getFormByNameSelector ( $ formName ) ; $ fieldName = trim ( $ fieldName ) ; if ( empty ( $ formSelector ) || empty ( $ fieldName ) ) { return '' ; } return sprintf ( '%s input[name="%s"]' , $ formSelector , $ fieldName ) ; }
Returns selector of the input field based on its name

@param string $formName  Name of form (value of the "name" attribute)
@param string $fieldName Name of field (value of the "name" attribute)
@return string
Returns selector of the input field based on its name