Lock the test if the user navigates away from the page or switches to another tab.
Lock the test if the user navigates away from the page or switches to another tab.