opera:config
shows the option "Allow Cross Network Navigation", which is what you want. The permalink for it seems to link to opera:config#Network|AllowCrossNetworkNavigation
, hence we want the preference in section Network
, key AllowCrossNetworkNavigation
and as it's displayed as a boolean preference it will take values 0
and 1
.
The next issue is setting it programmatically: OperaDriver has a public OperaScopePreferences preferences()
letting you do this (see OperaScopePreferences JavaDoc).
So, in short:
OperaDriver drv;
OperaScopePreferences prefs = drv.preferences();
prefs.set("Network", "AllowCrossNetworkNavigation", "1");