• <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 中使用硒

        时间:2023-09-14
            <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 中使用硒的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在无头模式下启动 ChromeDriver 下一篇:错误:System.InvalidOperationException:未创建会话:Chrome 版本必须在 70 到

                  相关文章

                    <tfoot id='H5pT5'></tfoot>
                    <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'>