-
Notifications
You must be signed in to change notification settings - Fork 61
Typo in: selenium driver fixture; load firefox from profile #124
Comments
Similar to #106 ? |
That indeed looks like a clear mistake. Should be fixed, but as I don't use this functionality, could you test whether this indeed now works? |
Hi Jaison, Almost, but not really. It seems you want a different functionality, while The file not found errors you got before, were because of this bug. I had Example: |
Gotcha. |
I was just using the setProfileDirectory method directly with the String implementation when I declared my default web driver supplier as a variable. Where as you described it was then passed into the File instance of the method which called setProfileDirectory. Thanks for @mourikwa! This should close #106 as well. I'll go ahead and tidy up... |
At the moment, the code is:
public void loadFirefoxProfileFromDirectory(String directory) {
defaultWebDriverSupplier.setCustomProfilePreferencesFile(new File(directory));
}
It should be:
public void loadFirefoxProfileFromDirectory(String directory) {
defaultWebDriverSupplier.setProfileDirectory(new File(directory));
}
I am guessing this typo is an copy/paste error from function:
public void loadCustomBrowserPreferencesFromFile(String filename) {
defaultWebDriverSupplier.setCustomProfilePreferencesFile(new File(filename));
}
The text was updated successfully, but these errors were encountered: