<legend id='85WaD'><style id='85WaD'><dir id='85WaD'><q id='85WaD'></q></dir></style></legend>
  • <tfoot id='85WaD'></tfoot>
      <bdo id='85WaD'></bdo><ul id='85WaD'></ul>

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

      1. <small id='85WaD'></small><noframes id='85WaD'>

      2. 使用 each() 方法时的量角器过时元素引用

        时间:2023-10-12
          <tbody id='pXy7I'></tbody>
          <tfoot id='pXy7I'></tfoot>

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

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

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

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

                1. 本文介绍了使用 each() 方法时的量角器过时元素引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  由于在量角器中使用 each() 方法,我收到以下错误.过去它运行良好,但现在一直因此错误而失败.

                  I am getting the error below as a result of using the each() method in protractor. It has worked fine in the past but is now consistently failing with this error.

                  失败:过时的元素引用:元素未附加到页面文档

                  Failed: stale element reference: element is not attached to the page document

                  element.all(bars).each((element) => element.getCssValue('width'))

                  是否有替代方案或原因?

                  Is there an alternative or a reason why this might be?

                  (为了清楚起见,我要做的就是获取一组称为条形图的 web 元素中每个元素的宽度.)

                  (For clarity, all I want to do is to get the width of each element in a set of web elements called bars.)

                  谢谢!

                  推荐答案

                  感谢所有帮助过的人.如果导致错误,解决方案将重试.由于元素的实时性,元素引用在获得 css 宽度之前就发生了变化.

                  Thanks to everyone who helped. The solution was retry again if it resulted in error. Due to the realtime nature of the element, the element reference was changing before it had got the css width.

                  这篇关于使用 each() 方法时的量角器过时元素引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用量角器在列表中选择第二个锚元素 下一篇:Angularjs,使用 angular-recaptcha 进行 e2e 测试

                  相关文章

                  最新文章

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

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

                    <bdo id='DRkM5'></bdo><ul id='DRkM5'></ul>
                3. <tfoot id='DRkM5'></tfoot>
                4. <legend id='DRkM5'><style id='DRkM5'><dir id='DRkM5'><q id='DRkM5'></q></dir></style></legend>