Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问还需要设置什么吗?? #1

Open
luolovehk opened this issue Jun 21, 2021 · 0 comments
Open

请问还需要设置什么吗?? #1

luolovehk opened this issue Jun 21, 2021 · 0 comments

Comments

@luolovehk
Copy link

Traceback (most recent call last):
File "C:/spiderJJ-master/main.py", line 251, in
spider_detail(array_jj)
File "C:/spiderJJ-master/main.py", line 174, in spider_detail
spider_cx(array)
File "C:/spiderJJ-master/main.py", line 120, in spider_cx
elem_input = bro.find_element_by_xpath('//[@id="ctl00_cphMain_txtFund"]')
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 978, in find_element
'value': value})['value']
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//
[@id="ctl00_cphMain_txtFund"]"}
(Session info: headless chrome=91.0.4472.106)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant