public function getSeleniumServerQualifiedName()
    {
        $files = opendir($binDirectory = base_path('vendor/bin'));

        while (false !== ($file = readdir($files))) {
            if (str_contains($file, 'selenium') && str_contains($file, $this->argument('serverVersion'))) {
                return $binDirectory.DIRECTORY_SEPARATOR.$file;
            }
        }

        return $this->downloadSelenium();
    }