browserevent icon indicating copy to clipboard operation
browserevent copied to clipboard

Unable to add eventlistener for window events

Open hdattada opened this issue 8 years ago • 5 comments

I am trying to attach an event to window object browser.addEventListener('onunload', 'window', (e) => { console.log('browser unloaded') console.log(e) })

and I see the below error, I am not sure if this is the right way

Cannot set property 'removeEventListener' of undefined

Is setting an eventListener for window object supported?

hdattada avatar Jan 10 '17 18:01 hdattada

experiencing same issue

anki06 avatar Aug 01 '18 09:08 anki06

@anki06 this plugin is deprecated and does probably not work anymore.

christian-bromann avatar Aug 01 '18 11:08 christian-bromann

@christian-bromann is there any alternate for the same?

anki06 avatar Aug 02 '18 12:08 anki06

And if it is deprecated it should be removed from webdriver io docs or should say somewhere that it is deprecated

anki06 avatar Aug 02 '18 12:08 anki06

It's not in the docs at all and: screen shot 2018-08-02 at 15 03 05

christian-bromann avatar Aug 02 '18 13:08 christian-bromann