Skip to content

Commit

Permalink
Update 1yzm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RobustBody authored Feb 15, 2023
1 parent e3e8ce7 commit 747d070
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions 1yzm.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@
options.add_argument('--disable-dev-shm-usage')
options.add_argument('--disable-headless')
options.add_experimental_option('excludeSwitches', ['enable-logging'])
#options.add_argument('user-data-dir=C:\\Users\\lutw\\AppData\\Local\\Microsoft\\Edge\\User Data')
options.add_argument('--user-data-dir=C:\\Users\\lutw\\AppData\\Local\\Microsoft\\Edge\\User Data') #这行如果导致报错,显示"unknown error: DevToolsActivePort file doesn't exist" 说明edge还有进程在后台运行
options.add_argument('--user-data-dir=C:\\Users\\xxx\\AppData\\Local\\Microsoft\\Edge\\User Data') #这行如果导致报错,显示"unknown error: DevToolsActivePort file doesn't exist" 说明edge还有进程在后台运行
driver = webdriver.Edge(options=options)


Expand Down

0 comments on commit 747d070

Please sign in to comment.