src/Concerns/InteractsWithElements.php
protected function parseKeys($keys)
    {
        return collect($keys)->map(function ($key) {
            if (is_string($key) && Str::startsWith($key, '{') && Str::endsWith($key, '}')) {
                $key = constant(WebDriverKeys::class.'::'.strtoupper(trim($key, '{}')));
            }

            if (is_array($key) && Str::startsWith($key[0], '{')) {
                $key[0] = constant(WebDriverKeys::class.'::'.strtoupper(trim($key[0], '{}')));
            }

            return $key;
        })->all();
    }
protected function parseKeys($keys)
    {
        return collect($keys)->map(function ($key) {
            if (is_string($key) && Str::startsWith($key, '{') && Str::endsWith($key, '}')) {
                $key = constant(WebDriverKeys::class.'::'.strtoupper(trim($key, '{}')));
            }

            if (is_array($key) && Str::startsWith($key[0], '{')) {
                $key[0] = constant(WebDriverKeys::class.'::'.strtoupper(trim($key[0], '{}')));
            }

            return $key;
        })->all();
    }
protected function parseKeys ( $ keys ) { return collect ( $ keys ) -> map ( function ( $ key ) { if ( is_string ( $ key ) && Str :: startsWith ( $ key , '{' ) && Str :: endsWith ( $ key , '}' ) ) { $ key = constant ( WebDriverKeys :: class . '::' . strtoupper ( trim ( $ key , '{}' ) ) ) ; } if ( is_array ( $ key ) && Str :: startsWith ( $ key [ 0 ] , '{' ) ) { $ key [ 0 ] = constant ( WebDriverKeys :: class . '::' . strtoupper ( trim ( $ key [ 0 ] , '{}' ) ) ) ; } return $ key ; } ) -> all ( ) ; }
Parse the keys before sending to the keyboard.

@param  array  $keys
@return array
Parse the keys before sending to the keyboard .