2017-02-06 2 views

答えて

0

mouseMove(location, opt_offset) → ActionSequenceを使用しないでください。これはマウスをその特定の要素に移動するだけであり、必ずしもスクロールを保証するとは限りません。あなたが特定の要素に

element(by.css('#twitter-widget-0')).getLocation().then(function(loc){ 
    return browser.executeScript('return window.scrollTo(arguments[0],arguments[1]);',loc.x,loc.y); 
}) 
をスクロールしたい場合には、ウィンドウ

browser.executeScript('return window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth').then(function(width){ 
    return browser.executeScript('return window.scrollTo(0,arguments[0]);',width); 
}) 

の終わりまでスクロールしたい場合には

関連する問題