Error in Edge profiling code | Selenium Python Forum
G
Gaurav Valera Posted on 01/01/2021
As mentioned in mod-22, followed ChromeProfiling code for EdgeProfiling. 
But it does not have attribute EdgeOptions()
Please guide me to resolve this issue.

Code:

from selenium import webdriver


op = webdriver.EdgeOptions()
op.add_argument("user-data-dir=C:\\Users\\gaura\\AppData\\Local\\Microsoft\\Edge\\User Data\\Profile 1")
op.add_argument("--disable-bookmarks")
op.add_argument("--disable-notifications")
op.add_argument("--start-maximized")
op.add_argument("--ignore-certificate-errors")
driver = webdriver.Edge(op, executable_path="C:\\Git_Data\\automationFrameworks\\msedgedriver.exe")
driver.quit()

Output:
Traceback (most recent call last):
File "C:\Git_Data\automationFrameworks\SelFinal\handlingBrowserNotification\edgeProfiling.py", line 4, in <module>
op = webdriver.EdgeOptions()
AttributeError: module 'selenium.webdriver' has no attribute 'EdgeOptions'

0
09914040666 Replied on 04/01/2021

Hey, 

There is no such function named "EdgeOptions" currently. In coming time may be the options for Edge profiling may come. Same is also shown in video that currently no options for profiling are available. 


Related Posts