def init_tbb_profile(self, version):
profile_directory = cm.get_tbb_profile_path(version)
self.prof_dir_path = clone_dir_with_timestap(profile_directory)
if self.capture_screen and self.page_url:
self.add_canvas_permission()
try:
tbb_profile = webdriver.FirefoxProfile(self.prof_dir_path)
except Exception:
wl_log.error("Error creating the TB profile", exc_info=True)
else:
return tbb_profile
评论列表
文章目录