Loop works great, but resizing not so much :/
I am trying o make a news browsing bot that goes true 10 latest news just by click on one and waiting 5 minutes, then going back and clicking on the second one and waiting 5 minutes and so on.
Problem is i want to run this bot on a tv, at full screen. When i try to use resize it looks really bad.
Any ideas how can i make it work?
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))