• <small id='7cCts'></small><noframes id='7cCts'>

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

      <legend id='7cCts'><style id='7cCts'><dir id='7cCts'><q id='7cCts'></q></dir></style></legend>
      <tfoot id='7cCts'></tfoot>

        “未知错误:无法读取 null 的属性‘scrollleft’"在 Chrome 中使用硒

        quot;unknown error: cannot read property #39;scrollleft#39; of nullquot; in Chrome using selenium(“未知错误:无法读取 null 的属性‘scrollleft’在 Chrome 中使用硒)
            <tbody id='cL0Tl'></tbody>
            • <bdo id='cL0Tl'></bdo><ul id='cL0Tl'></ul>

            • <small id='cL0Tl'></small><noframes id='cL0Tl'>

            • <tfoot id='cL0Tl'></tfoot>
              <i id='cL0Tl'><tr id='cL0Tl'><dt id='cL0Tl'><q id='cL0Tl'><span id='cL0Tl'><b id='cL0Tl'><form id='cL0Tl'><ins id='cL0Tl'></ins><ul id='cL0Tl'></ul><sub id='cL0Tl'></sub></form><legend id='cL0Tl'></legend><bdo id='cL0Tl'><pre id='cL0Tl'><center id='cL0Tl'></center></pre></bdo></b><th id='cL0Tl'></th></span></q></dt></tr></i><div id='cL0Tl'><tfoot id='cL0Tl'></tfoot><dl id='cL0Tl'><fieldset id='cL0Tl'></fieldset></dl></div>
                  <legend id='cL0Tl'><style id='cL0Tl'><dir id='cL0Tl'><q id='cL0Tl'></q></dir></style></legend>
                1. 本文介绍了“未知错误:无法读取 null 的属性‘scrollleft’"在 Chrome 中使用硒的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 Chrome 中单击按钮时,我收到未知错误:

                  In Chrome when I am clicking button, I am getting "unknown error:

                  cannot read property 'scrollleft' of null
                  

                  他们是该页面中的 1 个输入字段,我可以输入值,只有按钮单击不起作用.此单击在 Firefox 中运行良好.仅在 Chrome 中出现问题

                  Their is 1 Input field in that page I am able to enter value in that only Button click is not working. This Click is working fine in Firefox. issue only in Chrome

                  IWebElement element = wait.Until(d => d.FindElement(locator));
                  wait.Until(ExpectedConditions.ElementToBeClickable(element));
                  element.Click();
                  

                  注意:此页面中没有框架,没有滚动.

                  Note: There is no frames in this page, no scrolls.

                  推荐答案

                  通过WebDriverWait返回元素后,需要调用Click(),如下:p>

                  You need to invoke Click() once the element is returned through WebDriverWait as follows:

                  IWebElement element = wait.Until(d => d.FindElement(locator));
                  new WebDriverWait(driver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementToBeClickable(element)).Click();
                  

                  这篇关于“未知错误:无法读取 null 的属性‘scrollleft’"在 Chrome 中使用硒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                  Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                  How to store delegates in a List(如何将代表存储在列表中)
                  How delegates work (in the background)?(代表如何工作(在后台)?)
                  C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                  Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)

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

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

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

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