正在运行我的 selenium python 代码并遇到了一个奇怪的错误:
Python[367] (FSEvents.framework) implementation_callback_rpc: ERROR: CFDictionaryGetValue(FSEvents_streamDict, cfPortNumber) => NULL
我四处搜寻,但找不到此错误的含义。有任何想法吗?
编辑:
这是错误所在的代码,但似乎发生了更普遍的事情:
#Go to next page
next_button[0].click()
# Wait until next page has loaded
WebDriverWait(driver,20).until(
EC.text_to_be_present_in_element_value(
(By.ID,"MainContent_GridView1_PageCurrent"),`page_count+1`)
)
这是完整的错误消息:
2015-01-13 18:21 Python[510] (FSEvents.framework) implementation_callback_rpc: ERROR: CFDictionaryGetValue(FSEvents_streamDict, cfPortNumber) => NULL
2015-01-13 18:28 Python[510] (FSEvents.framework) implementation_callback_rpc: ERROR: CFDictionaryGetValue(FSEvents_streamDict, cfPortNumber) => NULL
2015-01-13 18:36 Python[510] (FSEvents.framework) implementation_callback_rpc: ERROR: CFDictionaryGetValue(FSEvents_streamDict, cfPortNumber) => NULL
Traceback (most recent call last):
File "epa_interns.py", line 145, in <module>
print(main_process(44))
File "epa_interns.py", line 36, in main_process
PDF_count = download_pdfs_for_state(driver,state_number,download_folder)
File "epa_interns.py", line 72, in download_pdfs_for_state
(By.ID,"MainContent_GridView1_PageCurrent"),`page_count+1`
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/selenium/webdriver/support/wait.py", line 71, in until
raise TimeoutException(message)
selenium.common.exceptions.TimeoutException: Message: