[Back to TesterHQ]

BROWSING IN PREVIEW MODE: join patreon and login to access the full content

Lecture: Make User Interaction More Reliable By Setting Focus to the page

If you were a member and logged in then you could view this video content.

Adding driver.findElement(By.tagName('html')).click(); to set focus to your page can make your user interaction code more reliable.