Selenium Firefox a primer plano -Python Java

((JavascriptExecutor) webDriver).executeScript("window.focus();");
Frail Fish