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
Post a Comment