mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
修复变量类型
This commit is contained in:
parent
4a5c977a07
commit
5a349b24e9
@ -5,12 +5,12 @@
|
|||||||
@File : driver_page.py
|
@File : driver_page.py
|
||||||
"""
|
"""
|
||||||
from os import popen
|
from os import popen
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from pprint import pprint
|
from pprint import pprint
|
||||||
from re import search as RE_SEARCH
|
from re import search as RE_SEARCH
|
||||||
from typing import Union
|
|
||||||
|
|
||||||
from selenium import webdriver
|
from selenium import webdriver
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
from DrissionPage.config import OptionsManager, DriverOptions
|
from DrissionPage.config import OptionsManager, DriverOptions
|
||||||
from DrissionPage.drission import Drission
|
from DrissionPage.drission import Drission
|
||||||
@ -210,7 +210,7 @@ def get_match_driver(ini_path: Union[str, None] = 'default',
|
|||||||
if show_msg:
|
if show_msg:
|
||||||
print('chrome.exe路径', chrome_path)
|
print('chrome.exe路径', chrome_path)
|
||||||
|
|
||||||
ver = _get_chrome_version(chrome_path)
|
ver = _get_chrome_version(str(chrome_path))
|
||||||
if show_msg:
|
if show_msg:
|
||||||
print('version', ver)
|
print('version', ver)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user