Selenium hangs instantiating FirefoxDriver

前端 未结 5 1369
迷失自我
迷失自我 2021-02-18 15:12

I try to get started with selenium (downloaded the current version today) and copied their example which opens a browser and performs a google search.

However, the progr

5条回答
  •  清歌不尽
    2021-02-18 16:08

    Saw this behavior when trying to instantiate the webdriver on a headless CentOS server without display being set.

    Per https://serverfault.com/questions/363827/how-can-i-run-firefox-on-centos-with-no-display -- you can use Xvfb, which gives you an X server that doesn't require connection to a physical display

提交回复
热议问题