我想对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