I run multiple E2E scenarios, in one of the scenarios scrolling appeared to the element to be only solution to dependably click given link. However, that introduced 200% time execution increase, because driver tries to scroll for each element, as I would like to have universal method for clicking links with given text would like to avoid unnecessary scrolling.
Is there a method to determine if element is displayed in the viewport and one doesn't need to scroll to it?