1.0.13 • Published 7 years ago

google-provider-login v1.0.13

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

google-provider-login

google-provider-login is a helper library for nightwatch.js to login with social provider google. Automate 'login with google' is not so easy, google have more secure and dynamic DOM login popup-interface. Google is now two kind of popup interface and both are completely different. This package lets you the flexibility to logs you into your website through both the login interface. This package works only with nightwatch.js to login with google provider.

Use:


     var googleLogin = require('google-provider-login')

     /**
      * @param {} client: instance of browser/client. nightwatch current browser instance
      *
      * @param {String} googleEmail: The email you want login from in google
      *
      * @param {String} googlePass: google account password
      *
      * @param {function} callback: a callback function to handle the response
      */


     @googleLogin.js

     client
        .click() //click on google provider,

        // Call googleLogin only after opening the provider login popup(window).

        .perform(function(client, done){
            googleLogin(client, googleEmail, googlePass, function(res){  //callback function

                // If login was successful it will return true otherwise retrun false

                console.log(res)   //true/false

                /*
                 * Your code based on callback response
                 */

            })
        });
        .done(end);
1.0.13

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago