T
T
Troodi Larson2018-09-02 13:34:45
C++ / C#
Troodi Larson, 2018-09-02 13:34:45

How to set a custom FirefoxDriver profile?

FirefoxOptions options = new FirefoxOptions();
options.Profile = new FirefoxProfile(path);
FirefoxDriver driver = new FirefoxDriver(options);

That doesn't work.
FirefoxDriver driver = new FirefoxDriver(new FirefoxProfile(path));

So too.
Passing a profile via the -profile argument stops responding to commands. Doesn't work GoToUrlnormal.
FirefoxProfile profile = new FirefoxProfile(path);
FirefoxOptions options = new FirefoxOptions();
options.Profile = profile;
FirefoxDriver driver = new FirefoxDriver(options);

And if you do this, but it will create a default one in the temp directory.
How to be anyway?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question