Selenium using too much RAM with Firefox
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 what it finds. It has one infinite loop that makes sure that the task keeps on going. I have sleep() function every few steps but the memory usage keeps increasing. I have something like this in Python: while(True): expected_conditions() ...doTask() driver.back() expected_conditions() ...doAnotherTask() driver.forward() expected_conditions() I never close the driver because that will slow down the program by a lot as it has