Friday 14 April 2017

can't click with horseman

i am trying to login with node-horseman ,but can't click on the button using horseman.how i trying to login using node-horseman

horseman
    .userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0')
    .open('http://144.76.34.244:8080/magento/1.9/web/customer/account/login')
    .type('input[name="login[username]"]', 'test@gmail.com')
    .type('input[name="login[password]"]', 'java@123)
        .click('[name="send"]')
        .wait(5000)
        .url()
        .then(function(url) {
            console.log(url)
        })
        .screenshot('big.png')
        .close();

here is my url where i try to login using horseman

http://144.76.34.244:8080/magento/1.9/web/customer/account/login

any help will be highly appreciated. thanks in advance



via Shekhar Tyagi

No comments:

Post a Comment