node-horseman icon indicating copy to clipboard operation
node-horseman copied to clipboard

.scrollTo does vertical but not horizontal sometimes

Open awlayton opened this issue 9 years ago • 0 comments

This happens very infrequently when I run the Travis tests. For example:

horseman
    .open('http://www.google.com')
    .scrollTo(50, 40)
    .evaluate(function() {
        return {
            top: document.body.scrollTop,
            left: document.body.scrollLeft
        };
    })
    .log() // *Sometimes* outputs {top: 50, left: 0} instead of {top: 50, left: 40}

I am not sure how horseman could cause this, it might be node-phantom-simple or PhantomJS. Either way, I should try to figure out what is happening.

awlayton avatar Mar 14 '16 22:03 awlayton