텔레그램 id @sosto1 연락주세요.기능1.
유튜브 라이브 스트림 동시시청자봇,라이브 조회수봇. 쇼츠 조회수 1개링크에 1000000조회수 늘리기 기능이 필요합니다
당신이 나에게 꼭 필요합니다 .10년동안 나와 계약 합시다.
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))