browserevent
browserevent copied to clipboard
Unable to add eventlistener for window events
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?
experiencing same issue
@anki06 this plugin is deprecated and does probably not work anymore.
@christian-bromann is there any alternate for the same?
And if it is deprecated it should be removed from webdriver io docs or should say somewhere that it is deprecated
It's not in the docs at all and: