Need Help to check if element is in current Viewport with Testcafe
问题 I'm trying to implement a custom method to find out if the element is in the current view port Below is the snippet of code that I've tried to implement but the outcome does not render the boolean result: export const isElementInViewport = () => { const getBoundValues = ClientFunction(() => document.querySelectorAll(".hero-getstart").item(0).getBoundingClientRect()); const windowHeight = ClientFunction(() => window.innerHeight); const windowWidth = ClientFunction(() => window.innerWidth);