Getting selenium to launch safari with default profile in python
There is setDataDir()
function in SafariOptions on safari driver v2.43.1 according to document as following however I couldn't find any document about how to use it and there is no information about last versions:
* @param dataDir A File object pointing to the Safari installation's data directory.* If {@code null}, the default installation location for the current platform will be used. public void setDataDir(File dataDir) { this.dataDir = Optional.fromNullable(dataDir); }