<tfoot id='RSFJE'></tfoot>

      • <bdo id='RSFJE'></bdo><ul id='RSFJE'></ul>

      <small id='RSFJE'></small><noframes id='RSFJE'>

    1. <i id='RSFJE'><tr id='RSFJE'><dt id='RSFJE'><q id='RSFJE'><span id='RSFJE'><b id='RSFJE'><form id='RSFJE'><ins id='RSFJE'></ins><ul id='RSFJE'></ul><sub id='RSFJE'></sub></form><legend id='RSFJE'></legend><bdo id='RSFJE'><pre id='RSFJE'><center id='RSFJE'></center></pre></bdo></b><th id='RSFJE'></th></span></q></dt></tr></i><div id='RSFJE'><tfoot id='RSFJE'></tfoot><dl id='RSFJE'><fieldset id='RSFJE'></fieldset></dl></div>
      <legend id='RSFJE'><style id='RSFJE'><dir id='RSFJE'><q id='RSFJE'></q></dir></style></legend>

        Selenium:Runtime.executionContextCreated 具有无效的“上下

        时间:2023-09-12

            <tbody id='mAoWC'></tbody>
          <legend id='mAoWC'><style id='mAoWC'><dir id='mAoWC'><q id='mAoWC'></q></dir></style></legend>

          <small id='mAoWC'></small><noframes id='mAoWC'>

          <tfoot id='mAoWC'></tfoot>
            <bdo id='mAoWC'></bdo><ul id='mAoWC'></ul>

                • <i id='mAoWC'><tr id='mAoWC'><dt id='mAoWC'><q id='mAoWC'><span id='mAoWC'><b id='mAoWC'><form id='mAoWC'><ins id='mAoWC'></ins><ul id='mAoWC'></ul><sub id='mAoWC'></sub></form><legend id='mAoWC'></legend><bdo id='mAoWC'><pre id='mAoWC'><center id='mAoWC'></center></pre></bdo></b><th id='mAoWC'></th></span></q></dt></tr></i><div id='mAoWC'><tfoot id='mAoWC'></tfoot><dl id='mAoWC'><fieldset id='mAoWC'></fieldset></dl></div>
                  本文介绍了Selenium:Runtime.executionContextCreated 具有无效的“上下文":的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我在这里查看了类似的问题 Protractor/Selenium Webdriver : Runtime.executionContextCreated 具有无效的上下文",此处 BUG-1473,但我无法得到答案,因此我决定在这里给出.我安装了最新的 chrome_driver v2.9,但仍然收到 Runtime.executionContextCreated 错误.这是我的代码

                  I looked the similar question here Protractor / Selenium Webdriver : Runtime.executionContextCreated has invalid 'context' and here BUG-1473, but I cannot get the answer hence I decided to give it here. I installed latest chrome_driver v2.9, but still getting Runtime.executionContextCreated error. Here is my code

                  from selenium import webdriver
                  
                  driver = webdriver.Chrome()
                  driver.get('http://www.google.com/xhtml')
                  

                  并在 python shell 上抛出异常:

                  And thrown exception on the python shell:

                  Traceback (most recent call last):
                    File "<stdin>", line 1, in <module>
                    File "/Users/humoyun/Documents/virtual_env_fold/flasky/fl_venv/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 248, in get
                      self.execute(Command.GET, {'url': url})
                    File "/Users/humoyun/Documents/virtual_env_fold/flasky/fl_venv/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 236, in execute
                      self.error_handler.check_response(response)
                    File "/Users/humoyun/Documents/virtual_env_fold/flasky/fl_venv/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 192, in check_response
                      raise exception_class(message, screen, stacktrace)
                  selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"2061.1","isDefault":true},"id":1,"name":"","origin":"://"}
                    (Session info: chrome=55.0.2883.95)
                    (Driver info: chromedriver=2.9.248307,platform=Mac OS X 10.11.3 x86_64)
                  

                  推荐答案

                  我遇到了类似的问题,我用的是 chrome 驱动程序版本 2.25 for mac,它工作正常.

                  i had similar issue , i used chrome driver version 2.25 for mac and it worked.

                  这篇关于Selenium:Runtime.executionContextCreated 具有无效的“上下文":的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:pytest->如何在类下的测试方法中使用夹具返回值 下一篇:使用python自动从windows文件对话框打开文件

                  相关文章

                  最新文章

                    <bdo id='6fOt7'></bdo><ul id='6fOt7'></ul>

                  <i id='6fOt7'><tr id='6fOt7'><dt id='6fOt7'><q id='6fOt7'><span id='6fOt7'><b id='6fOt7'><form id='6fOt7'><ins id='6fOt7'></ins><ul id='6fOt7'></ul><sub id='6fOt7'></sub></form><legend id='6fOt7'></legend><bdo id='6fOt7'><pre id='6fOt7'><center id='6fOt7'></center></pre></bdo></b><th id='6fOt7'></th></span></q></dt></tr></i><div id='6fOt7'><tfoot id='6fOt7'></tfoot><dl id='6fOt7'><fieldset id='6fOt7'></fieldset></dl></div>

                    <small id='6fOt7'></small><noframes id='6fOt7'>

                  1. <legend id='6fOt7'><style id='6fOt7'><dir id='6fOt7'><q id='6fOt7'></q></dir></style></legend>

                  2. <tfoot id='6fOt7'></tfoot>