Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\忘记密码.py", line 59, in test_
driver.switch_to_frame("x-URS-iframe")
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 574, in switch_to_frame
self._switch_to.frame(frame_reference)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\switch_to.py", line 84, in frame
self._driver.execute(Command.SWITCH_TO_FRAME, {'id': frame_reference})
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 192, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchFrameException: Message: no such frame
(Session info: chrome=54.0.2840.99)
(Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 6.1.7601 SP1 x86)
----------------------------------------------------------------------
Ran 1 test in 9.264s