1. <i id='N0I3H'><tr id='N0I3H'><dt id='N0I3H'><q id='N0I3H'><span id='N0I3H'><b id='N0I3H'><form id='N0I3H'><ins id='N0I3H'></ins><ul id='N0I3H'></ul><sub id='N0I3H'></sub></form><legend id='N0I3H'></legend><bdo id='N0I3H'><pre id='N0I3H'><center id='N0I3H'></center></pre></bdo></b><th id='N0I3H'></th></span></q></dt></tr></i><div id='N0I3H'><tfoot id='N0I3H'></tfoot><dl id='N0I3H'><fieldset id='N0I3H'></fieldset></dl></div>
    <tfoot id='N0I3H'></tfoot>
  2. <small id='N0I3H'></small><noframes id='N0I3H'>

      • <bdo id='N0I3H'></bdo><ul id='N0I3H'></ul>
      <legend id='N0I3H'><style id='N0I3H'><dir id='N0I3H'><q id='N0I3H'></q></dir></style></legend>

      从 Selenium 触发时,Google Chrome 无法导航到指定的

      时间:2023-09-28
        <tbody id='q4ySY'></tbody>
    1. <tfoot id='q4ySY'></tfoot>
      <i id='q4ySY'><tr id='q4ySY'><dt id='q4ySY'><q id='q4ySY'><span id='q4ySY'><b id='q4ySY'><form id='q4ySY'><ins id='q4ySY'></ins><ul id='q4ySY'></ul><sub id='q4ySY'></sub></form><legend id='q4ySY'></legend><bdo id='q4ySY'><pre id='q4ySY'><center id='q4ySY'></center></pre></bdo></b><th id='q4ySY'></th></span></q></dt></tr></i><div id='q4ySY'><tfoot id='q4ySY'></tfoot><dl id='q4ySY'><fieldset id='q4ySY'></fieldset></dl></div>

          <bdo id='q4ySY'></bdo><ul id='q4ySY'></ul>

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

                <legend id='q4ySY'><style id='q4ySY'><dir id='q4ySY'><q id='q4ySY'></q></dir></style></legend>
              1. 本文介绍了从 Selenium 触发时,Google Chrome 无法导航到指定的 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我有一个围绕 Selenium-WebDriver 开发的自动化框架,它启动 Chrome 并导航到指定的 URL 并执行指定的自动化.当我委托框架执行一项长期任务并让它通宵运行时(运行不成功).第二天,当我尝试重新运行一组新测试时,Selenium 能够启动 Chrome,但浏览器无法导航到指定的 URL.以下是详细的堆栈跟踪.

                I have an automation framework developed around Selenium-WebDriver which launches Chrome and navigates to specified URL and performs specified automation. When I commissioned the framework to perform a long task and left it overnight to run (Run was not successful). The following day when I tried to re-run a new set of Tests, Selenium was able to fire Chrome but the Browser would not navigate to the specified URL. The following is the detailed stack trace.

                Starting ChromeDriver (v2.7.236900) on port 60678
                Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
                (Session info: chrome=41.0.2272.118)
                (Driver info: chromedriver=2.7.236900,platform=Windows NT 6.3 x86_64)   (WARNING: The server did not provide any stacktrace information)
                Command duration or timeout: 10.12 seconds
                Build info: version: '2.24.1', revision: '17205', time: '2012-06-19 16:53:24'
                System info: os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_25'
                Driver info: driver.version: RemoteWebDriver
                Session ID: a2fafed66d51994e3ef57bada99fddbf
                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                at java.lang.reflect.Constructor.newInstance(Unknown Source)
                at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
                at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145)
                at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:472)
                at org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.maximize(RemoteWebDriver.java:683)
                at com.gravitant.utils.Util.launchBrowser(Util.java:1711)
                at com.gravitant.test.RunTests.start(RunTests.java:147)
                at com.gravitant.test.RunTests.main(RunTests.java:80)
                

                这是我第二次面临同样的问题.当我尝试用谷歌搜索错误时,我能够找到 this 特定论坛.我试图重新下载 Chrome_driver 但没有帮助.重新启动系统也没有帮助.我仔细检查了代码和所有设置,但没有任何改变.奇怪的是,我偶然发现了一个奇怪的解决方案.

                This is the second time I am facing the same issue. When I tried to google search the error I was able find this particular forum. I tried to re-download Chrome_driver but it did not help. Restarting the system did not help either. I double checked the code and all the set-up but nothing was changed. Curiously I was able to stumble upon a curious solution.

                解决方案 - 重新安装 Chrome 浏览器解决了该问题.我能够完美地运行测试.

                Solution - Re-installing Chrome Browser solved the issue. I was able to run the tests perfectly.

                我很想知道为什么会这样,以及是什么导致 chrome 表现得如此奇怪.

                I am curious to understand why this was and what might have caused chrome to behave so oddly.

                推荐答案

                这里的问题是,Selenium-WebDriver 无法在 chrome 中启动已安装的 3rd Party Extensions.我今天也遇到了这个问题,所以我没有重新安装谷歌浏览器,而是删除了我在 Chrome 上安装的所有扩展程序.我安装了几个添加拦截器"扩展.

                The issue here is, Selenium-WebDriver is unable to launch the installed 3rd Party Extensions in chrome. I encountered the issue today as well, so instead of re-installing google chrome, I deleted all the extensions I had installed on Chrome. I have a couple of "Add Blocker" extensions installed.

                这篇关于从 Selenium 触发时,Google Chrome 无法导航到指定的 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:Selenium sendkeys 使用 Chrome 驱动程序丢弃字符 下一篇:如何禁用 Selenium 中的保存密码弹出窗口?

                相关文章

                最新文章

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

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

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

                  <tfoot id='bvoIy'></tfoot>
                  1. <legend id='bvoIy'><style id='bvoIy'><dir id='bvoIy'><q id='bvoIy'></q></dir></style></legend>