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

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

        Chrome 网络驱动程序发送密钥不发送“3"

        时间:2023-07-04

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

              <small id='8py3y'></small><noframes id='8py3y'>

                <tfoot id='8py3y'></tfoot>
                    <tbody id='8py3y'></tbody>
                • 本文介绍了Chrome 网络驱动程序发送密钥不发送“3"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  由于某种原因,我无法将字符3"写入页面上的输入元素.

                  For some reason, I am unable to write character '3' into the input element on the page.

                  这段代码:

                      chrome_options = Options()
                      chrome_options.add_argument('--dns-prefetch-disable')
                      chrome_options.add_argument('--no-proxy-server')
                      chromeDriverPath = self.getChromeDriverPath()
                      os.environ["webdriver.chrome.driver"] = chromeDriverPath
                      self.driver = webdriver.Chrome(chromeDriverPath, chrome_options=chrome_options)
                  
                      self.driver.get(self.loginUrl)
                      login = self.driver.find_element_by_id('login_credit')
                      login.send_keys("12345")
                  

                  导致登录输入中写入1245"...有人可以帮忙吗?我用的是python 2.7,最新的chrome和最新的chromedriver

                  results in "1245" being written in the login input... Can someone help please? I use python 2.7, the latest chrome and the latest chromedriver

                  login.send_keys("3")
                  
                  login.send_keys("3")
                  

                  也不行.

                  login.send_keys("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*()")
                  

                  - 字符串中仅缺少3"...

                  - only the "3" was missing in the string...

                  有效的是

                  login.send_keys(Keys.NUMPAD3)
                  

                  正如安德森在下面建议的那样,但这不是解决方案.

                  as Andersson suggested below, but this is not a solution.

                  我在谷歌搜索框中尝试过,我遇到了同样的行为.

                  I tried it in the google search box and I experienced the same behaviour.

                  推荐答案

                  更新到最新版本 chrome 驱动程序 解决了这个问题.

                  Updating to latest chrome driver resolved this issue.

                  这篇关于Chrome 网络驱动程序发送密钥不发送“3"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 Selenium Webdriver (Python) 循环链接 下一篇:如何在 python 中使用 selenium 将整个文本发送到文本区域而不是逐行发送?

                  相关文章

                      <bdo id='1CcrA'></bdo><ul id='1CcrA'></ul>
                  1. <small id='1CcrA'></small><noframes id='1CcrA'>

                    <legend id='1CcrA'><style id='1CcrA'><dir id='1CcrA'><q id='1CcrA'></q></dir></style></legend>

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