Skip to content

[🐛 Bug]: Failed to set preferences: unknown error when specify a profile. #16210

@mlipok

Description

@mlipok

Description

It is related to:
#14652

I used
"C:\Program Files\Mozilla Firefox\firefox.exe" --marionette -profile C:\FirefoxTEMP
and it creates the C:\FirefoxTEMP but my ESET (AV program) in recently updated HIPS module blocks this directory and you are not able to delete this directory till you disable ESET HIPS module and restart Windows.

As this directory is locked you are not able to create session in a normal way , I mean by runing geckodriver and then sending capabilites to the driver.

my capability string looks like:

{
    "capabilities":{
        "alwaysMatch":{
            "browserName":"firefox",
            "acceptInsecureCerts":true,
            "moz:firefoxOptions":{
                "binary":"C:\\Program Files\\Mozilla Firefox\\firefox.exe",
                "args":[
                    "-profile",
                    "C:\\FirefoxTEMP"
                ]
            }
        }
    }
}

When I try to create the sesion I get:

{"value":{"error":"session not created","message":"Failed to set preferences: unknown error","stacktrace":""}}

The interestning things is that when I use:
"C:\Program Files\Mozilla Firefox\firefox.exe" --marionette -profile C:\FirefoxTEMP
It will work properly every time.

But when I try to provide profile directory via capability string then geckodriver report an issue.

btw.
I use AutoIt not selenium but this was the only report which was related to the same issue.
As I saw this was not solved, so thus I wanted to share my observation about locking directory by AV software.

Do you have any sollution to this issue or this will need to investigate by geckodriver devolopers ?

Reproducible Code

none

ℹ️ Last known working version: 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions