Giter Site home page Giter Site logo

browserevent's People

Contributors

christian-bromann avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

browserevent's Issues

Installing browserevent via npm does not work.

After running the install command, I get the following errors:

$ npm install browserevent
npm WARN deprecated [email protected]: module has been merged into crc32-stream
|
> [email protected] install /Users/russell.trafford/node_modules/browserevent/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

System: Mac OSX 10.9.5
NPM Version: 2.12.0
Webdriverio: 3.0.0

'removeEventListener' of undefined

I followed the instructions for installing the plugin, but when I start the tests I get the following error:

ERROR: Cannot set property 'removeEventListener' of undefined

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?

Does not work with wdio 3.2.5

When initializing browserevent with an instance of WebDriverIO 3.2.5, I get this exception:

     undefined: Cannot set property 'removeEventListener' of undefined

The code initializing it:

                this.browser = webdriverio.remote({
                    host: "localhost",
                    port: seleniumPort,
                    desiredCapabilities: { browserName: 'chrome' }
                });

                browserevent.init(this.browser);

I see that there are major changes in object structure between 2.x and 3.x, could this be related?

Add a `quit()` method

I found I needed a quit() method, or similar, to close the HTTP server connection and thus allow the Node thread to close:

    this.quit = function() {
        this.app.close();
    };

Without this, my Node app stays alive indefinitely, even though webdriverio and selenium have been quit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.