Selenium Chromedriver Hangs?

后端 未结 2 1131
孤街浪徒
孤街浪徒 2021-02-06 01:52

I have a long running python app that will periodically (every 30-60 seconds) open a webpage with selenium and chrome driver, run some javascript and take a screenshot. Its runn

2条回答
  •  猫巷女王i
    2021-02-06 02:24

    I never found out the specific piece of code that was causing this problem, but creating a fresh instance of Xvfb with each driver load seems to have fixed it. Perhaps there is a memory leak somewhere in the interaction between selenium and Xvfb? Either way, marking this as closed.

提交回复
热议问题