Selenium Firefox zum Vordergrund -Python Java
((JavascriptExecutor) webDriver).executeScript("window.focus();");
Frail Fish
((JavascriptExecutor) webDriver).executeScript("window.focus();");