Wednesday, January 22, 2020

Scroll to the end of the page; UiPath RPA


BottomOfPage.js

window.onscroll = function (ev) {    var docHeight = document.body.offsetHeight;    docHeight = docHeight == undefined ? window.document.documentElement.scrollHeight : docHeight;
    var winheight = window.innerHeight;    winheight = winheight == undefined ? document.documentElement.clientHeight : winheight;
    var scrollpoint = window.scrollY;    scrollpoint = scrollpoint == undefined ? window.document.documentElement.scrollTop : scrollpoint;
    if ((scrollpoint + winheight) >= docHeight) {        return 'True';    }    else    { return 'False';    }









No comments: