added clear temp files in loop due to selenium bug