python - 为什么不能使用click()、clear()、send_keys()?
ringa_lee
ringa_lee 2017-04-18 10:15:33
0
2
819

先放网址https://passport.58.com

我能通过xpath定位到网页元素(用户名)

↑无报错

却不能使用click()、clear()、send_keys()

↑报错:
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/untitled/t.py", line 13, in <module>

browser.find_element_by_xpath("//input[@id='usernameUser']").click()

File "C:UsersAdministratorAppDataRoamingPythonPython35site-packagesseleniumwebdriverremotewebelement.py", line 77, in click

self._execute(Command.CLICK_ELEMENT)

File "C:UsersAdministratorAppDataRoamingPythonPython35site-packagesseleniumwebdriverremotewebelement.py", line 494, in _execute

return self._parent.execute(command, params)

File "C:UsersAdministratorAppDataRoamingPythonPython35site-packagesseleniumwebdriverremotewebdriver.py", line 236, in execute

self.error_handler.check_response(response)

File "C:UsersAdministratorAppDataRoamingPythonPython35site-packagesseleniumwebdriverremoteerrorhandler.py", line 192, in check_response

raise exception_class(message, screen, stacktrace)

selenium.common.exceptions.ElementNotVisibleException:太多了,略

Screenshot: available via screen

我怀疑是这个网站做的保护措施,希望大家能帮我看看0.0

ringa_lee
ringa_lee

ringa_lee

모든 응답(2)
阿神

으아아아

Peter_Zhu

사용할 수 없는 것은 아니지만 처음 이 페이지에 들어갈 때 QR코드를 스캔해서 로그인해야 합니다. 먼저 점프해야 하고 그 다음에는 비밀번호 상자가 실제로 숨겨지고 실행을 해야 합니다. 그것을 표시할 JS 조각.

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!