请教关于 Python selenium 使用 firefox 指定 profiles 的问题
資深大佬 : bbxiong 2
正常打开浏览器登录以后就不需要滑块答题了,但是 webdriver 启动的 firefox 每次登录都要滑块答题
profileDir = r"C:UsersvmwareAppDataRoamingMozillaFirefoxProfilesjtuws0sz.default-release" #指定 firefox 浏览器本机默认的 Profiles 目录可以实现记录登录结果,免滑块答题 webdriver.FirefoxProfile(profileDir)
#但是配置自定义的 profiles 目录却不能保存登录结果,每次都需要滑块答题 profileDir = "c:FirefoxPortableDataaz60if6f.fifa" webdriver.FirefoxProfile(profileDir)
请教 slenium 使用 firefox 正确指定自定义 profile 目录的方式.
大佬有話說 (0)