OperaProfile is an interface representing a profile (commonly a profile directory) for the Opera web browser. It's typically used by passing in an instance object of this class to the "opera.profile" capability at construction of {@link OperaDriver}, like this:
{@code DesiredCapabilities capabilities = DesiredCapabilities.opera(); OperaProfile profile = new OperaProfile(); profile.preferences().set("foo", "bar", "baz"); capabilities.setCapability("opera.profile", profile); WebDriver driver = new OperaDriver(capabilities);}
Or by passing it in as an object directly to {@link OperaDriver}'s constructor:
{@code OperaProfile profile = new OperaProfile(); profile.preferences().set("foo", "bar", "baz"); WebDriver driver = new OperaDriver(profile);}
Among Opera's command-line arguments the profile may be referred to as "pd", short for "personal directory".
@see OperaPreferences