2

Whenever I run my script a temp file gets created in my local directory: something like: "webdriver4726826335276373500libs" inside the folder: IEDriver.dll

at first I thought it was this issue How to stop Selenium from creating temporary Firefox Profiles using Web Driver? but that does not seem to be the case, I do not think that IEdriver uses profiles.

This is a problem for me because it is eating up my hd space. does anyone know why this is happening?

Community
  • 1
  • 1
ajoe
  • 558
  • 1
  • 11
  • 32

2 Answers2

2

The core of the IE driver is contained in a COM dll written in C++. For certain language bindings (.NET and Java), this dll is extracted at runtime to a temp folder when you instantiate an instance of the InternetExplorerDriver class. These languages then use their native code invocation mechanism (JNA or P/Invoke) to call the functions in the native code dll. This methodology was chosen to reduce the requirement on the user to have the correct .dll (and the correct version of the .dll) in a known location. At present, it doesn't appear that the Java language bindings do anything to delete this .dll after the server is shut down, whereas the .NET bindings do. The report tracking this issue for the Java bindings in the project's issue list is issue #1140. As a workaround, you can manually delete these directories after running your tests, or it may be possible to create a short routine in your testing framework that will do the same.

JimEvans
  • 27,201
  • 7
  • 83
  • 108
0

The driver.quite() will automatically clears your temporary files. you better look at this.

Community
  • 1
  • 1
Karthikeyan
  • 2,634
  • 5
  • 30
  • 51