2014-10-17 40 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() 
    }); 
    }); 
});