{"record":{"id":"a1d634c3c3f24536","repo":"SeleniumHQ/selenium","slug":"unable-to-find-profile-named-name-inspect","errorCode":null,"errorMessage":"unable to find profile named: #{name.inspect}","messagePattern":"unable to find profile named: #(.+?)","errorType":"exception","errorClass":"Error::WebDriverError","httpStatus":null,"severity":"error","filePath":"rb/lib/selenium/webdriver/firefox/profile.rb","lineNumber":53,"sourceCode":"          'browser.usedOnWindows10.introURL' => 'about:blank',\n          'network.captive-portal-service.enabled' => false,\n          'security.csp.enable' => false\n        }.freeze\n\n        LOCK_FILES = %w[.parentlock parent.lock lock].freeze\n\n        attr_reader :name, :log_file\n\n        class << self\n          def ini\n            @ini ||= ProfilesIni.new\n          end\n\n          def from_name(name)\n            profile = ini[name]\n            return profile if profile\n\n            raise Error::WebDriverError, \"unable to find profile named: #{name.inspect}\"\n          end\n\n          def decoded(json)\n            JSON.parse(json)\n          end\n        end\n\n        #\n        # Create a new Profile instance\n        #\n        # @example User configured profile\n        #\n        #   profile = Selenium::WebDriver::Firefox::Profile.new\n        #   profile['network.proxy.http'] = 'localhost'\n        #   profile['network.proxy.http_port'] = 9090\n        #\n        #   driver = Selenium::WebDriver.for :firefox, :profile => profile\n        #","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/SeleniumHQ/selenium/blob/aa36b38e696a0909e973bdf5e2f9031ffe842c4b/rb/lib/selenium/webdriver/firefox/profile.rb#L35-L71","documentation":"Raised by Firefox::Profile.from_name (Error::WebDriverError) when no profile with the given name is found in Firefox's profiles.ini. The class method delegates to ProfilesIni and raises if the lookup returns nil.","triggerScenarios":"Calling Selenium::WebDriver::Firefox::Profile.from_name(name) with a name not listed in Firefox's profiles.ini; referencing a profile that was deleted; typo in the profile name.","commonSituations":"Running on a machine/container with no Firefox profile initialized; profile name read from config that doesn't match the local Firefox install; Selenium Grid node without the expected named profile.","solutions":["List available profiles from profiles.ini and use an existing name.","Create the profile in Firefox first (about:profiles) so it appears in profiles.ini.","If you don't need an existing profile, use a fresh Profile.new instead of from_name."],"exampleFix":"// before\nprofile = Selenium::WebDriver::Firefox::Profile.from_name('QA')\n\n// after\n# confirm available names first\navailable = Selenium::WebDriver::Firefox::Profile.ini.keys\nprofile = Selenium::WebDriver::Firefox::Profile.from_name('QA')\n# or use a fresh profile\nprofile = Selenium::WebDriver::Firefox::Profile.new","handlingStrategy":"validation","validationCode":"names = Selenium::WebDriver::Firefox::Profile.ini.keys\nif names.include?(requested_name)\n  profile = Selenium::WebDriver::Firefox::Profile.from_name(requested_name)\nelse\n  profile = Selenium::WebDriver::Firefox::Profile.new  # fresh profile\nend","typeGuard":null,"tryCatchPattern":null,"preventionTips":["List profile names from Profile.ini before calling from_name.","Create the profile in Firefox (about:profiles) so it appears in profiles.ini.","Use a fresh Profile.new when you don't need a pre-existing profile."],"tags":["firefox","profile","configuration"],"backgroundTag":null,"analyzedSha":"aa36b38e696a0909e973bdf5e2f9031ffe842c4b","analyzedAt":"2026-08-14T02:32:32.244Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}