@fr0121 It's not clear, if you mean that you can't change resources as variables through the interface while being in the script logic, then it should be like that
Visible on screen has a bug?
-
Hi,
I was checking the "is element exists" function in BAS and clicked on "also check if visible on screen" but it always returns true even if it is not visible on screen but it is loaded on the page.
What exactly does visible on screen check because it's clearly not visible on the screen but the element is loaded at the bottom of the page.
Is this a bug?Please check this exampletest.xml
-
@hippyzipp9 This function checks visibility not on the screen (viewport), but in the entire document.
-
Any way to check visibility on viewport? @UserTrue
-
@hippyzipp9 Yes, but this is not a trivial task, it is solved using javascript.
-
My Solution: execute JS on element and
function isInViewport(element) { const rect = element.getBoundingClientRect(); return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth) ); } [[IS_VISIBLE]] = isInViewport(self)1 year))