Update locator to deal with stale element exception

I believe that this will address the intermittent failure that we're getting with stale element exceptions. The only issue is that it uses the contents of the page, so it won't be l10n-friendly, which might not be an issue for this test.