“OK, der Internet Explorer war schlecht, zugegeben. Aber jetzt gibt es Edge, der ist total fantastisch!!1”
Fun Fact am Rande: Der Edge hat in seinem Menü einen Punkt “Open with Internet Explorer” 🙄
“OK, der Internet Explorer war schlecht, zugegeben. Aber jetzt gibt es Edge, der ist total fantastisch!!1”
Fun Fact am Rande: Der Edge hat in seinem Menü einen Punkt “Open with Internet Explorer” 🙄
Wer bsplw. Selenium gegen den IE fährt, der wird auf den “Protected Mode” stoßen, doch wer den per Skript setzen will, der muss schon etwas länger suchen: In der Registry gibt es einen entsprechenden Schlüssel “2500” (“Turn on Protected Mode”).
Dazu:
Unless stated otherwise, each DWORD value is equal to zero, one, or three. Typically, a setting of zero sets a specific action as permitted, a setting of one causes a prompt to appear, and a setting of three prohibits the specific action.
In Code sieht das dann so aus:
1 |
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\4" /v 2500 /t REG_DWORD /d 0 /f |
Danke, Johann!
EDIT: Scheint nicht (persistent) zu funktionieren. Ein Workaround scheint
1 |
INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS |
zu sein, und dies könnte man auch probieren:
For IE 11 only, you will need to set a registry entry on the target computer so that the driver can maintain a connection to the instance of Internet Explorer it creates.
For 32-bit Windows installations, the key you must examine in the registry editor is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.
For 64-bit Windows installations, the key is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BFCACHE.
Please note that the FEATURE_BFCACHE subkey may or may not be present, and should be created if it is not present.
Important: Inside this key, create a DWORD value named iexplore.exe with the value of 0.
Einen Tag zu früh, Kinder! Aber wie lustig: “Graph created with MS Excel to showcase Microsoft’s greatness in the software market” sag ich nur 😀
Wer nach einer Methode sucht, um Javascript-Methoden aus Actionscript heraus anzusprechen, wird häufig
1 |
ExternalInterface.call(); |
finden. Ich weiß nicht, ob das unter irgendwelchen Umständen im IE funktioniert, aber es tut das mindestens nicht immer. Ich empfehle stattdessen
1 |
navigateToURL( new URLRequest("javascript:foo()"), "_self" ); |
hth.