firefox - Change temporary file location in python webdriver -


i execute selenium tests on ff16, selenium 2.33, python on linux. have created separate firefox profiles corresponding devices.

i observed directory 'webdriver-py-profilecopy' created in tmp directory. , see directory deleted after completion of tests. these directories not cleared. size of directory around 28mb. want change tmp directory location. there way change temp file location?

in java webdriver provides way define our own temp directory. there way in python webdriver temporaryfilesystem.settemporarydirectory

i used tempdir = tempfile.mkdtemp(suffix='foo',prefix='bar',dir=mytemp) , worked.

thanks


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

double exclamation marks in haskell -