Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
network-assets-reptile
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyang
network-assets-reptile
Commits
c26c82da
Commit
c26c82da
authored
Jul 20, 2023
by
liyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:debug ptt
parent
80fc8050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
createBrowserDriver.py
utils/createBrowserDriver.py
+1
-2
No files found.
utils/createBrowserDriver.py
View file @
c26c82da
...
...
@@ -74,7 +74,6 @@ def create(option=None, using_user_data=True, web_browser="firefox"):
firefox_profile_path
=
get_user_data_dir
()
# 将此处替换为你的Firefox用户数据目录路径
profile
=
FirefoxProfile
(
profile_directory
=
firefox_profile_path
)
options
.
profile
=
profile
options
else
:
options
.
add_argument
(
f
'--user-data-dir={get_user_data_dir()}'
)
...
...
@@ -98,7 +97,7 @@ def create(option=None, using_user_data=True, web_browser="firefox"):
else
:
extend
=
""
geckodriver_path
=
os
.
path
.
join
(
os
.
path
.
abspath
(
"./"
),
"drive"
,
"geckodriver"
,
extend
)
browser
=
webdriver
.
Firefox
(
options
=
options
,
executable_path
=
geckodriver_path
)
browser
=
webdriver
.
Firefox
(
options
=
options
)
else
:
# 创建Chrome浏览器对象并传入选项
browser
=
webdriver
.
Chrome
(
options
=
options
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment