Skip to content

executeScript on an Angular2 site: Permission denied to access property "invoke" #515

@pmneo

Description

@pmneo

Firefox Version

Firefox 51.0.1, 52.0, 54.0a1 (2017-03-06) (32-Bit) with geckodriver 14.0

Platform

Windows and OSX

Steps to reproduce -

FirefoxDriver ff = new FirefoxDriver( new DesiredCapabilities() );
ff.get( "https://material.angular.io/components/component/slide-toggle" );
System.out.println( ff.executeScript( "return true;" ) );

Expected result is an sysout with true but result is:

1488888328481	geckodriver	INFO	Listening on 127.0.0.1:43715
log4j:WARN No appenders could be found for logger (org.apache.http.client.protocol.RequestAddCookies).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
1488888329083	mozprofile::profile	INFO	Using profile path C:\Users\pmneo\AppData\Local\Temp\rust_mozprofile.Mm7rgeHkWLB6
1488888329092	geckodriver::marionette	INFO	Starting browser C:\Program Files (x86)\Mozilla Firefox\firefox.exe
1488888329101	geckodriver::marionette	INFO	Connecting to Marionette on localhost:62162
1488888329417	addons.manager	DEBUG	Application has been upgraded
1488888329458	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1488888329459	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1488888329462	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1488888329464	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1488888329464	addons.manager	DEBUG	Starting provider: XPIProvider
1488888329465	addons.xpi	DEBUG	startup
1488888329465	addons.xpi	INFO	SystemAddonInstallLocation directory is missing
1488888329467	addons.xpi	INFO	Mapping [email protected] to C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329467	addons.xpi	INFO	Mapping [email protected] to C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329468	addons.xpi	INFO	Mapping [email protected] to C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329468	addons.xpi	INFO	Mapping [email protected] to C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329469	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1488888329470	addons.xpi	DEBUG	checkForChanges
1488888329470	addons.xpi	INFO	SystemAddonInstallLocation directory is missing
1488888329471	addons.xpi	DEBUG	Loaded add-on state from prefs: {}
1488888329472	addons.xpi	DEBUG	New add-on [email protected] in app-system-defaults
1488888329473	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329473	addons.xpi	DEBUG	New add-on [email protected] in app-system-defaults
1488888329473	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329474	addons.xpi	DEBUG	New add-on [email protected] in app-system-defaults
1488888329474	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329475	addons.xpi	DEBUG	New add-on [email protected] in app-system-defaults
1488888329475	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329476	addons.xpi	DEBUG	New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1488888329476	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1488888329477	addons.xpi	DEBUG	getInstallState changed: true, state: {"app-system-defaults":{"[email protected]":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","st":1487915143169},"[email protected]":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","st":1487915143176},"[email protected]":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","st":1487915151497},"[email protected]":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","st":1487915143197}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1487915143264}}}
1488888329483	addons.xpi-utils	DEBUG	Opening XPI database C:\Users\pmneo\AppData\Local\Temp\rust_mozprofile.Mm7rgeHkWLB6\extensions.json
1488888329485	addons.xpi-utils	DEBUG	New add-on [email protected] installed in app-system-defaults
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1488888329494	DeferredSave.extensions.json	DEBUG	Save changes
1488888329495	addons.xpi-utils	DEBUG	New add-on [email protected] installed in app-system-defaults
1488888329500	DeferredSave.extensions.json	DEBUG	Starting timer
1488888329501	DeferredSave.extensions.json	DEBUG	Save changes
1488888329501	addons.xpi-utils	DEBUG	New add-on [email protected] installed in app-system-defaults
1488888329507	DeferredSave.extensions.json	DEBUG	Save changes
1488888329508	addons.xpi-utils	DEBUG	New add-on [email protected] installed in app-system-defaults
1488888329512	DeferredSave.extensions.json	DEBUG	Save changes
1488888329513	addons.xpi-utils	DEBUG	New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1488888329518	DeferredSave.extensions.json	DEBUG	Save changes
1488888329518	addons.manager	DEBUG	Registering startup change 'installed' for [email protected]
1488888329524	addons.xpi	DEBUG	Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329529	addons.xpi	DEBUG	Calling bootstrap method install on [email protected] version 2.0
1488888329529	addons.xpi-utils	DEBUG	Make addon app-system-defaults:[email protected] visible
1488888329530	DeferredSave.extensions.json	DEBUG	Save changes
1488888329531	addons.manager	DEBUG	Registering startup change 'installed' for [email protected]
1488888329531	addons.xpi	DEBUG	Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329533	addons.xpi	DEBUG	Calling bootstrap method install on [email protected] version 1.9
1488888329534	addons.xpi-utils	DEBUG	Make addon app-system-defaults:[email protected] visible
1488888329535	DeferredSave.extensions.json	DEBUG	Save changes
1488888329535	addons.manager	DEBUG	Registering startup change 'installed' for [email protected]
1488888329536	addons.xpi	DEBUG	Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329539	addons.xpi	DEBUG	Calling bootstrap method install on [email protected] version 1.0.5
1488888329539	addons.xpi-utils	DEBUG	Make addon app-system-defaults:[email protected] visible
1488888329540	DeferredSave.extensions.json	DEBUG	Save changes
1488888329540	addons.manager	DEBUG	Registering startup change 'installed' for [email protected]
1488888329541	addons.xpi	DEBUG	Loading bootstrap scope from C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329542	addons.xpi	DEBUG	Calling bootstrap method install on [email protected] version 1.0
1488888329542	addons.xpi-utils	DEBUG	Make addon app-system-defaults:[email protected] visible
1488888329542	DeferredSave.extensions.json	DEBUG	Save changes
1488888329542	addons.xpi-utils	DEBUG	Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1488888329543	DeferredSave.extensions.json	DEBUG	Save changes
1488888329543	addons.xpi	DEBUG	Updating XPIState for {"id":"[email protected]","syncGUID":"{cac4abc1-e97a-45fc-b920-dabdfaab8040}","location":"app-system-defaults","version":"2.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Application Update Service Helper","description":"Sets value(s) in the update url based on custom checks.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","installDate":1487915143169,"updateDate":1487915143169,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8486,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.0","maxVersion":"52.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1488888329543	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329543	addons.xpi	DEBUG	Updating XPIState for {"id":"[email protected]","syncGUID":"{4e6d23df-ca58-4af5-9737-dfe5268535dd}","location":"app-system-defaults","version":"1.9","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","installDate":1487915143176,"updateDate":1487915143176,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":7181,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.0","maxVersion":"52.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1488888329544	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329544	addons.xpi	DEBUG	Updating XPIState for {"id":"[email protected]","syncGUID":"{478cd2c1-3c14-4f9e-9d84-e9609d66131f}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","installDate":1487915151497,"updateDate":1487915151497,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":920535,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.0","maxVersion":"52.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1488888329544	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329544	addons.xpi	DEBUG	Updating XPIState for {"id":"[email protected]","syncGUID":"{bb39d1cd-821f-4860-ba3e-af4c27e1c5bc}","location":"app-system-defaults","version":"1.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\features\\[email protected]","installDate":1487915143197,"updateDate":1487915143197,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":1454,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.0","maxVersion":"52.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false}
1488888329544	addons.xpi	DEBUG	getModTime: Recursive scan of [email protected]
1488888329545	addons.xpi	DEBUG	Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{7458b869-f6d7-46ff-8e6f-eabe36a87598}","location":"app-global","version":"52.0","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1487915143264,"updateDate":1487915143264,"applyBackgroundUpdates":1,"skinnable":true,"size":19581,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"52.0","maxVersion":"52.0"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false}
1488888329545	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1488888329546	DeferredSave.extensions.json	DEBUG	Save changes
1488888329546	addons.xpi	DEBUG	Updating database with changes to installed add-ons
1488888329546	addons.xpi-utils	DEBUG	Updating add-on states
1488888329547	addons.xpi-utils	DEBUG	Writing add-ons list
1488888329551	addons.xpi	DEBUG	Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329551	addons.xpi	DEBUG	Calling bootstrap method startup on [email protected] version 2.0
1488888329552	addons.xpi	DEBUG	Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329553	addons.xpi	DEBUG	Calling bootstrap method startup on [email protected] version 1.9
1488888329554	addons.xpi	DEBUG	Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329554	addons.xpi	DEBUG	Calling bootstrap method startup on [email protected] version 1.0.5
1488888329555	addons.xpi	DEBUG	Registering manifest for C:\Program Files (x86)\Mozilla Firefox\browser\features\[email protected]
1488888329556	addons.xpi	DEBUG	Calling bootstrap method startup on [email protected] version 1.0
1488888329557	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1488888329558	addons.manager	DEBUG	Provider finished startup: XPIProvider
1488888329558	addons.manager	DEBUG	Starting provider: LightweightThemeManager
1488888329558	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1488888329558	addons.manager	DEBUG	Provider finished startup: LightweightThemeManager
1488888329558	addons.manager	DEBUG	Starting provider: GMPProvider
1488888329568	addons.manager	DEBUG	Registering shutdown blocker for GMPProvider
1488888329568	addons.manager	DEBUG	Provider finished startup: GMPProvider
1488888329568	addons.manager	DEBUG	Starting provider: PluginProvider
1488888329568	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
1488888329569	addons.manager	DEBUG	Provider finished startup: PluginProvider
1488888329569	addons.manager	DEBUG	Completed startup sequence
1488888329877	Marionette	INFO	Listening on port 62162
1488888330081	addons.manager	DEBUG	Starting provider: <unnamed-provider>
1488888330081	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>
1488888330081	addons.manager	DEBUG	Provider finished startup: <unnamed-provider>
1488888330108	addons.manager	DEBUG	Starting provider: PreviousExperimentProvider
1488888330109	addons.manager	DEBUG	Registering shutdown blocker for PreviousExperimentProvider
1488888330109	addons.manager	DEBUG	Provider finished startup: PreviousExperimentProvider
1488888330113	DeferredSave.extensions.json	DEBUG	Starting write
1488888330402	DeferredSave.extensions.json	DEBUG	Write succeeded
1488888330403	addons.xpi-utils	DEBUG	XPI Database saved, setting schema version preference to 19
Mär 07, 2017 1:05:31 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFORMATION: Detected dialect: W3C
Exception in thread "main" org.openqa.selenium.WebDriverException: Error: Permission denied to access property "invoke"
Build info: version: 'unknown', revision: '86a5d70', time: '2017-02-16 07:47:51 -0800'
System info: host: 'PMNEO7510', ip: '192.168.0.193', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_112'
Driver info: org.openqa.selenium.firefox.FirefoxDriver
Capabilities [{moz:profile=C:\Users\pmneo\AppData\Local\Temp\rust_mozprofile.Mm7rgeHkWLB6, rotatable=false, timeouts={implicit=0, page load=300000, script=30000}, pageLoadStrategy=normal, platform=ANY, specificationLevel=0, moz:accessibilityChecks=false, acceptInsecureCerts=false, browserVersion=52.0, platformVersion=10.0, moz:processID=4688, browserName=firefox, platformName=windows_nt}]
Session ID: 817417e5-eb1e-4e58-b9ad-123a535445e3
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:127)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:93)
	at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:42)
	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:163)
	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
	at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:537)
	at FFInvokeError.main(FFInvokeError.java:18)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions