def __init__(self):
# ??????
options = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2}
options.add_experimental_option("prefs", prefs)
if platform.system() == 'Darwin':
executable_path = '{0}/{1}'.format(current_config.PROJ_PATH, 'chromedriver')
else:
executable_path = 'chromedriver.exe'
self.driver = webdriver.Chrome(executable_path=executable_path, chrome_options=options)
self.driver.implicitly_wait(current_config['TIME_OUT'])
self.driver.set_window_size(1440, 900)
评论列表
文章目录