File "InteractsWithJavascript.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/laravel/dusk/src/Concerns/InteractsWithJavascript.php
File size: 396 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Laravel\Dusk\Concerns;

trait InteractsWithJavascript
{
    /**
     * Execute JavaScript within the browser.
     *
     * @param  string|array  $scripts
     * @return array
     */
    public function script($scripts)
    {
        return collect((array) $scripts)->map(function ($script) {
            return $this->driver->executeScript($script);
        })->all();
    }
}