Multiple firefox.exe in task manager

broken image

There were previous instances when Firefox consumed about 80% of the RAM. You can find a detailed discussion in How to sleep webdriver in python for milliseconds Analysis Also, the suspension time may be longer than requested by an arbitrary amount because of the scheduling of other activity in the system. The actual suspension time may be less than that requested because any caught signal will terminate the sleep() following execution of that signal’s catching routine. The argument may be a floating point number to indicate a more precise sleep time. Time.sleep(secs) suspends the execution of the current thread for the given number of seconds. However while using Selenium and WebDriver to execute tests through your Automation Framework, using time.sleep() without any specific condition defeats the purpose of automation and should be avoided at any cost. Inducing time.sleep() virtually puts a blanket over the underlying issue. So, the first and foremost task would be to break up the infinite loop pertaining to your usecase into smaller Tests.

broken image

Mozilla goes back and forth between user profiles and notifications page on Instagram and does tasks based on what it finds is too broad as a single usecase. To start with Selenium have very little control over the amount of RAM used by Firefox.