'How to check whether a link is clickable in Playwright?

Consider the following screenshot:

modal

Here, only buttons I accept and More options are clickable. The modal background prevents any clicks to the navigation links. Is it possible to use Playwright to select only links that are in current viewport and that would receive a click event should one occur within their bounding box?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source