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

        <small id='1xVwL'></small><noframes id='1xVwL'>

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

        Selenium sendkeys 使用 Chrome 驱动程序丢弃字符

        时间:2023-09-28

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

            <tfoot id='arl4d'></tfoot>
                • <bdo id='arl4d'></bdo><ul id='arl4d'></ul>
                  <i id='arl4d'><tr id='arl4d'><dt id='arl4d'><q id='arl4d'><span id='arl4d'><b id='arl4d'><form id='arl4d'><ins id='arl4d'></ins><ul id='arl4d'></ul><sub id='arl4d'></sub></form><legend id='arl4d'></legend><bdo id='arl4d'><pre id='arl4d'><center id='arl4d'></center></pre></bdo></b><th id='arl4d'></th></span></q></dt></tr></i><div id='arl4d'><tfoot id='arl4d'></tfoot><dl id='arl4d'><fieldset id='arl4d'></fieldset></dl></div>
                • <legend id='arl4d'><style id='arl4d'><dir id='arl4d'><q id='arl4d'></q></dir></style></legend>
                    <tbody id='arl4d'></tbody>
                  本文介绍了Selenium sendkeys 使用 Chrome 驱动程序丢弃字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  带有 Chrome 驱动程序的 Selenium sendkey 会丢弃字符2"和4".其他字符正常.当我使用其他浏览器(IE 或 FF)时,一切正常.

                  Selenium sendkeys with Chrome Driver drops character "2" and "4". Other characters are OK. When I use other browser (IE or FF), everything is OK.

                  代码:

                  WebElement name = driver.findElement(localizator);
                  name.clear();
                  name.sendKeys("1234567890 abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ");
                  

                  结果:输入框被填满

                  13567890 abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ
                  

                  字符24缺失,其他字符填写正确.

                  Characters 2 and 4 are missing, other characters are filled correctly.

                  我使用的是 Windows 7 64bit,Chrome 版本 29.0.1547.57 m,ChromeDriver win32 (v2.2.215849.dyu) - 最新版本.

                  I use Windows 7 64bit, Chrome version 29.0.1547.57 m, ChromeDriver win32 (v2.2.215849.dyu) - the newest one.

                  推荐答案

                  调查你也来自捷克共和国,我会做出疯狂的假设,你的键盘默认设置为捷克语.

                  Investigating you are from Czech Republic also, I am going to make wild assumption, that your keyboard is set up to Czech as default.

                  当我的系统默认使用捷克语键盘时,sendKeys 也有一些奇怪的问题.由于我将默认设置更改为英文,问题就消失了.

                  I also had some strange issues with sendKeys when my system had Czech keyboard as default one. Since I changed default to English, the problems dissapeared.

                  如果这没有帮助,请提供信息,如果您尝试这样做会发生什么:

                  If this does not help, please provide info what is going to happen if you try this:

                    name.sendKeys("2");
                    name.sendKeys("22222222");
                    name.sendKeys("4");
                    name.sendKeys("44444444");
                    name.sendKeys("424242");
                  

                  这篇关于Selenium sendkeys 使用 Chrome 驱动程序丢弃字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何通过除“类"之外的属性直接找到 WebEle 下一篇:从 Selenium 触发时,Google Chrome 无法导航到指定的

                  相关文章

                  最新文章

                    <tfoot id='Zp45A'></tfoot>

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

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