小问题修复

This commit is contained in:
g1879 2022-01-05 17:15:40 +08:00
parent 0b90f9e436
commit 3a4954c292
2 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ class BasePage(BaseParser):
@property @property
def title(self) -> Union[str, None]: def title(self) -> Union[str, None]:
"""返回网页title""" """返回网页title"""
ele = self.ele('xpath:/html/head/title') ele = self.ele('xpath://title')
return ele.text if ele else None return ele.text if ele else None
@property @property

View File

@ -434,7 +434,7 @@ def _create_chrome(chrome_path: str, port: str, args: list, proxy: dict) -> tupl
debugger = Popen(f'{chrome_path} --remote-debugging-port={port} {args}', shell=False) debugger = Popen(f'{chrome_path} --remote-debugging-port={port} {args}', shell=False)
if chrome_path == 'chrome.exe': if chrome_path == 'chrome.exe':
from common import get_exe_path_from_port from .common import get_exe_path_from_port
chrome_path = get_exe_path_from_port(port) chrome_path = get_exe_path_from_port(port)
# 传入的路径找不到主动在ini文件、注册表、系统变量中找 # 传入的路径找不到主动在ini文件、注册表、系统变量中找