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

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

  • <tfoot id='dav9m'></tfoot>
  • <legend id='dav9m'><style id='dav9m'><dir id='dav9m'><q id='dav9m'></q></dir></style></legend>

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

      1. 如何在量角器中截取整个页面的屏幕截图?

        How to take screenshot of entire page in Protractor?(如何在量角器中截取整个页面的屏幕截图?)
            <tbody id='3HAoO'></tbody>

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

                  <small id='3HAoO'></small><noframes id='3HAoO'>

                  <tfoot id='3HAoO'></tfoot>

                  本文介绍了如何在量角器中截取整个页面的屏幕截图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 Protractor API 文档之后应该有是一种截取整个页面的方法,而不仅仅是可见的框架.事实上它应该是默认行为.

                  Following Protractor API documentation there should be a way to take screenshot of entire page, not only visible frame. In fact it should be default behaviour.

                  takeScreenshot() 被调用时

                  browser.takeScreenshot().then(function (png) {
                      // writing down image
                  });
                  

                  然后在文件中保存选项 3.来自文档 - '当前帧的可见部分'.如何强制webdriver全屏截图?

                  Then in file is saved option 3. from documentation - 'Visible portion of current frame'. How to force webdriver to take full page screenshot?

                  推荐答案

                  chrome 上有个bug.https://bugs.chromium.org/p/chromium/issues/detail?id=45209https://bugs.chromium.org/p/chromedriver/issues/detail?id=294
                  更改浏览器高度后(browser.driver.manage().window().setSize(320, 2000);),Firefox 会截取整个页面,Chrome 不会.

                  there is a bug on chrome. https://bugs.chromium.org/p/chromium/issues/detail?id=45209 https://bugs.chromium.org/p/chromedriver/issues/detail?id=294
                  After change browser height(browser.driver.manage().window().setSize(320, 2000);), Firefox will take entire page screenshot, but not Chrome.

                  这篇关于如何在量角器中截取整个页面的屏幕截图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What are valid deviceNames for Chrome emulation testing with Protractor?(使用 Protractor 进行 Chrome 模拟测试的有效设备名称是什么?)
                  Protractor Check if Element Does Not Exist(量角器检查元素是否不存在)
                  Protractor e2e Tests Login Redirection(Protractor e2e 测试登录重定向)
                  Explain about async/ await in Protractor(解释 Protractor 中的 async/await)
                  Protractor browser.wait doesn#39;t wait(量角器 browser.wait 不等待)
                  How to use Protractor with Angular 2?(如何在 Angular 2 中使用量角器?)
                  <i id='DbIJa'><tr id='DbIJa'><dt id='DbIJa'><q id='DbIJa'><span id='DbIJa'><b id='DbIJa'><form id='DbIJa'><ins id='DbIJa'></ins><ul id='DbIJa'></ul><sub id='DbIJa'></sub></form><legend id='DbIJa'></legend><bdo id='DbIJa'><pre id='DbIJa'><center id='DbIJa'></center></pre></bdo></b><th id='DbIJa'></th></span></q></dt></tr></i><div id='DbIJa'><tfoot id='DbIJa'></tfoot><dl id='DbIJa'><fieldset id='DbIJa'></fieldset></dl></div>
                        • <bdo id='DbIJa'></bdo><ul id='DbIJa'></ul>
                        • <tfoot id='DbIJa'></tfoot>

                            <legend id='DbIJa'><style id='DbIJa'><dir id='DbIJa'><q id='DbIJa'></q></dir></style></legend>

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

                              <tbody id='DbIJa'></tbody>