2014-10-17 44 views

回答

0

这应该工作,但可能不是最好的办法。

describe('scrollTop', function() { 
    it('should be greater than 250', function() { 
    browser.executeScript('return document.body.scrollTop;').then(function(scrollTop) { 
     expect(scrollTop > 250).toBeTruthy() 
    }); 
    }); 
});