.moveToElement('.load-more-btn',20,20)
.execute(function () {
windown.scrollBy(0,100000);
},[])--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs+unsubscribe@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/8674c466-3da6-48ff-a3a2-005b0bf522d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Rita,Have you tried this.execute('scrollTo(0,3000)')This used to work for me.
On 26 October 2016 at 18:54, Rita <rita.bra...@gmail.com> wrote:
Hi Everyone,I need to scroll a div to make the button visible so nightwatch.js can click it.I tried;.moveToElement('.load-more-btn',20,20)also
.execute(function () {
windown.scrollBy(0,100000);
},[])
but both didn´t work.Can someone give me a hand on this?Thanks in advance,Rita
--
You received this message because you are subscribed to the Google Groups "NightwatchJs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to nightwatchjs+unsubscribe@googlegroups.com.
To post to this group, send email to nightw...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nightwatchjs/894c55d8-2c0c-4951-b39c-0518da16e97f%40googlegroups.com.
browser.execute(function (selector, scrollX, scrollY) {
var elem = document.querySelector(selector);
elem.scrollLeft = scrollX;
elem.scrollTop = scrollY;
}, ['#element-to-scroll', 20, 20]);