0

Firefox browser window is minimized when switching between two tabs. Any way to fix this? This didn't help.

    DRIVER.manage().window().maximize();

Open URL code:

    public void openUrl(String loginUrl) throws Exception 
    {   
        DRIVER.manage().deleteAllCookies(); 
        DRIVER.get(loginUrl);                                                                       
        DRIVER.manage().window().maximize();                                         
     }
Java User
  • 57
  • 6
  • 2
    can you post your code of switching tabs, it is good practice to use DRIVER.manage().window().maximize(); just after browser window is launched. can you provide more information about when exactly it gets minimized. – Ashish Kamble Oct 11 '18 at 10:08
  • Do you use an existing profile? If yes, reset Firefox settings. – pburgr Oct 12 '18 at 06:35

0 Answers0