Selenium using too much RAM with Firefox

前端 未结 5 1131
刺人心
刺人心 2020-11-30 11:51

I am using selenium with Firefox to automate some tasks on Instagram. It basically goes back and forth between user profiles and notifications page and does tasks based on w

5条回答
  •  不知归路
    2020-11-30 12:44

    There is no fix for that as of now. I suggest you use driver.close() approach. I was also struggling with the RAM issue and what i did was i counted the number of loops and when the loop count reached to a certain number( for me it was 200) i called driver.close() and then start the driver back again and also reset the count. This way i did not need to close the driver every time the loop is executed and has less effect on the performance too. Try this. Maybe it will help in your case too.

提交回复
热议问题