Force focus on elements before checking if they are visible (e.g. skip-nav links)

This will reduce false positives on skip navigation links, and adds regression testing for the test.