为硒边缘中的特定配置文件创建硒测试

时间:2020-06-30 17:41:43

标签: python-3.x selenium selenium-webdriver selenium-edgedriver

我想对Edge中的特定配置文件进行selenium(Python)测试。我将配置文件的位置传递为

options.add_argument("user-data-dir=path of profile")

但返回错误

AttributeError: module 'selenium.webdriver.edge.options' has no attribute 'add_argument'

使用python在硒中传递配置文件路径的正确方法是什么。我也导入了以下内容

from selenium.webdriver.edge import options

0 个答案:

没有答案