Element Should Be In View
[Arguments] ${element}
${js}= Set Variable function(element){var bounding=element.getBoundingClientRect();return(bounding.top>=0&&bounding.left>=0&&bounding.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&bounding.right<=(window.innerWidth||document.documentElement.clientWidth));};
${visible}= execute_script ${js} return isInViewport(${element});
[Return] ${visible}
浙公网安备 33010602011771号