|

楼主 |
发表于 2023-5-20 13:31:38
|
显示全部楼层
- [quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=6239203&ptid=228526][color=#999999]isdkz 发表于 2023-5-20 13:29[/color][/url][/size]
- 您好,这个问题可能是由于以下原因导致的:
- 1. 元素未加载:如果元素未加载完成,尝试等待一段时间再尝试 ...[/quote]
- E:\Python\e\venv\Scripts\python.exe E:\python\e\main.py
- Traceback (most recent call last):
- File "E:\python\e\main.py", line 10, in <module>
- answer = ai.ask(question)
- File "E:\python\e\gpt.py", line 39, in ask
- ActionChains(self.driver).move_to_element(self.driver.find_element(
- File "D:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 831, in find_element
- return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
- File "D:\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute
- self.error_handler.check_response(response)
- File "D:\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response
- raise exception_class(message, screen, stacktrace)
- selenium.common.exceptions.InvalidSelectorException: Message: invalid selector: An invalid or illegal selector was specified
- (Session info: chrome=113.0.5672.127)
- Stacktrace:
- Backtrace:
- GetHandleVerifier [0x004F8893+48451]
- (No symbol) [0x0048B8A1]
- (No symbol) [0x00395058]
- (No symbol) [0x003983F1]
- (No symbol) [0x00399631]
- (No symbol) [0x003996D0]
- (No symbol) [0x003C00C0]
- (No symbol) [0x003C069B]
- (No symbol) [0x003EDD92]
- (No symbol) [0x003DA304]
- (No symbol) [0x003EC482]
- (No symbol) [0x003DA0B6]
- (No symbol) [0x003B7E08]
- (No symbol) [0x003B8F2D]
- GetHandleVerifier [0x00758E3A+2540266]
- GetHandleVerifier [0x00798959+2801161]
- GetHandleVerifier [0x0079295C+2776588]
- GetHandleVerifier [0x00582280+612144]
- (No symbol) [0x00494F6C]
- (No symbol) [0x004911D8]
- (No symbol) [0x004912BB]
- (No symbol) [0x00484857]
- BaseThreadInitThunk [0x75FB00C9+25]
- RtlGetAppContainerNamedObjectPath [0x773B7B4E+286]
- RtlGetAppContainerNamedObjectPath [0x773B7B1E+238]
- 进程已结束,退出代码1
复制代码- <button class="transition text-neutral-300 hover:text-neutral-800 dark:hover:text-neutral-200"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class=" iconify iconify--ri" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M12 3c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2Zm0 14c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2Zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2Z"></path></svg></button>
复制代码 |
|