How to set focus on firefox browser when using selenium 3.7

when i run my test cases , FF browser open in backend (On MAC machine). so how can i set focus on browser to come in frount.

i tried with below solution but noting is working



driver.switchTo().window(driver.getWindowHandle());  >> this is working fine on chrome but not for FF

Default Asked on January 4, 2018 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.