Reputation: 1
I have used NSSM to create a Windows Service for my Selenium Server instance (v 2.48.2 of the Selenium Server Standalone JAR).
I have also set the service to log on as a Local System Account, and have allowed the service to interact with the desktop. When I have used a particular account for the service, instead of the local system account, Internet Explorer would not launch.
I noticed that after a few days, the hard disk would start filling up with temporary internet files at the following location:
C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5
After a few days, I saw that the size of this folder was ~30 GB. I have had to manually clear out this folder.
I've used the following command to create the service:
nssm install seleniumhub java -jar C:\selenium-server\selenium-server-standalone-2.48.2.jar -Dwebdriver.chrome.driver=C:\selenium-server\chromedriver.exe -Dwebdriver.ie.driver=C:\selenium-server\IEDriverServer.exe
Has anyone else run into this issue?
Upvotes: 0
Views: 605
Reputation: 1
So in order to avoid this problem, running the Selenium Server as a startup process, instead of as a service, seems to not fill the hard disk up.
Upvotes: 0
Reputation: 29052
It's a common occurrence that you clean the tmp directory because everytime a new profile is made, a folder is put in by Chrome/IE/FF that stores information about that session.
You should write a simple script to clear this folder after every test suite is run. Something along this pseudo-code will work:
for $dir in %TMP%:
rm -fr $dir
Upvotes: 0