chromedriver opening two drivers

54 views
Skip to first unread message

MA

unread,
Nov 12, 2019, 9:41:09 AM11/12/19
to ChromeDriver Users
Used chromedriver ChromeDriver 78.0.3904.70 since the chrome i'm using is Version 78.0.3904.97. 
Now while using this chromedriver in automation opens two drivers one with expected and another empty driver (data;). 
Please advise.

Regards,
MA

T Crichton

unread,
Nov 12, 2019, 1:11:08 PM11/12/19
to ChromeDriver Users
Please show the code where you are creating the ChromeDriver. What framework are you using? The data; url is the default for a new ChromeDriver instance.

MA

unread,
Nov 12, 2019, 11:46:27 PM11/12/19
to ChromeDriver Users

        WebDriver driver=null;

        //try for 10 times at 2 second intervals till driver object is obtained
        for(int i=0;i<10;i++)
        {
            try
            {
                drivers_count++;
                driver=new RemoteWebDriver(new URL(url), capability);
                break;
            }
            catch(Exception e)
            {
                e.printStackTrace();
               Thread.sleep(2000);
            }
            driver.quit();
        }

        driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);

        Point targetPosition = new Point(0, 0);
        driver.manage().window().setPosition(targetPosition);

        // Dimension targetSize = new Dimension(2560,1440);
        Dimension targetSize = new Dimension(1680,1440);
        
        driver.manage().window().setSize(targetSize);

muzam...@gmail.com

unread,
Nov 13, 2019, 12:13:43 AM11/13/19
to ChromeDriver Users
Code has nothing to do with this. This same code was working fine until i used latest chrome driver

Shawn McCarthy

unread,
Nov 13, 2019, 12:15:16 PM11/13/19
to ChromeDriver Users
What if you get rid of the for loop ?

T Crichton

unread,
Nov 13, 2019, 12:47:03 PM11/13/19
to ChromeDriver Users
I'm not able to reproduce the issue with the code provided when I start selenium-server.jar -role standalone. I just get a single instance each of ChromeDriver and Chrome.
Possibly the service is starting a ChromeDriver instance on startup, then another when the code requests one? Are both windows the same version of Chrome?

muzam...@gmail.com

unread,
Nov 14, 2019, 4:02:30 AM11/14/19
to ChromeDriver Users
@Shawn McCarthy
Same,  2 drivers will open.


@T Crichton
I used an older version of chrome driver now and its working normal. So the issue is with the latest chromedriver.

PS. 
Im using MacOS Catalina.
Chrome and chromedriver versions 78

John Chen

unread,
Nov 14, 2019, 12:01:52 PM11/14/19
to muzam...@gmail.com, ChromeDriver Users
The ChromeDriver team doesn't yet have MacOS Catalina available, so it's possible that there is some compatibility issue that we are not aware of. Has anyone else on this mailing list trying running ChromeDriver 78 on Catalina? We'd love to hear your experience.

@MA: Could you please send us verbose ChromeDriver log for both version 78 and an earlier version? We'd like to compare them and see what the difference is. Also, could you please send the output of "ps -f" command when two instances of driver are created?

Thanks,
John



--
You received this message because you are subscribed to the Google Groups "ChromeDriver Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromedriver-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chromedriver-users/7c64dd4d-1062-4caa-8026-9933c9b1d566%40googlegroups.com.

T Crichton

unread,
Nov 14, 2019, 6:59:46 PM11/14/19
to ChromeDriver Users
The issue does not repro on Mac Mojave. There is a noticeable pause before the final url shows due to the setPosition and setSize calls. The initial data: url is visible during this pause. I tried 76 to 78.

MA, what versions of ChromeDriver do not show this behavior for you? you mention using an earlier version, but not which.

manchalaa...@gmail.com

unread,
Dec 18, 2019, 2:50:14 PM12/18/19
to ChromeDriver Users
Me too same issue 

empty one.PNG

Driver_intialization.PNG

Reply all
Reply to author
Forward
0 new messages