使用selenium webdriver打开Safari浏览器

其实只要三行代码就能实现,但是一直遇到‘Could not create a session: You must enable the ‘Allow Remote Automation’ option in Safari’s Develop menu to control Safari via WebDriver.’的报错,在百度上看了N多结果都没找到原因,折腾了好久发现原因如下: 1.需要在Sa
相关文章
相关标签/搜索