添加is_force_run_browser参数实现强制启动浏览器,解决浏览器无法连接异常 #368
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
我遇到的问题是因为在UOS上telnet所有端口都会显示是通的,所以解决方案就是在chrome_option添加一个参数is_force_run_browser,默认False,在connect_browser中添加判断,实现强制启动浏览器
以下是我在CSDN上的文章:
DrissionPage在UOS中使用时浏览器无法链接