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

      1. <small id='1J67q'></small><noframes id='1J67q'>

        • <bdo id='1J67q'></bdo><ul id='1J67q'></ul>
      2. <tfoot id='1J67q'></tfoot>
      3. 如何设置 HTML5 type="date";使用 Selenium/Prot

        时间:2023-10-12

                <tbody id='UWVhK'></tbody>
              <legend id='UWVhK'><style id='UWVhK'><dir id='UWVhK'><q id='UWVhK'></q></dir></style></legend>

              <tfoot id='UWVhK'></tfoot>

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

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

                • 本文介绍了如何设置 HTML5 type="date";使用 Selenium/Protractor 的输入字段(例如在 Chrome 中)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我想更新一些 HTML5 日期表单字段的日期值(显示为 mm/dd/yyyy,仅数字部分可修改):

                  I want to update the date value (displayed as mm/dd/yyyy with only the number portions modifiable) of some HTML5 date form fields:

                  <input type="date"/>
                  

                  在我的 Selenium/Protractor 测试中.我已经尝试为此使用 sendKeys 但(在 Chrome 上)到目前为止还没有成功.

                  in my Selenium/Protractor tests. I've tried using sendKeys for this but (on Chrome) have not been successful so far.

                  有没有办法使用 sendKeys 做到这一点?还是有其他方法?

                  Is there a way to do this using sendKeys? Or some other way to do it?

                  推荐答案

                  在 Mac 上使用 Chrome 和 Protractor,以下方法对我有用.

                  Using Chrome on Mac with Protractor, the following approach has worked for me.

                  模板 (html5)

                  <input type="date" placeholder="Due Date" ng-model="newLesson.dueDate">
                  

                  测试

                  this.newLessonDate = element( by.model('newLesson.dueDate') );
                  this.newLessonDate.sendKeys('01-30-2015');
                  

                  在我输入日期格式为01-30-2015"之前,我一直收到错误.

                  I kept getting errors until I entered the date format as '01-30-2015'.

                  这篇关于如何设置 HTML5 type="date";使用 Selenium/Protractor 的输入字段(例如在 Chrome 中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:量角器清除()不工作 下一篇:量角器切换到上一个选项卡

                  相关文章

                  最新文章

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

                    1. <small id='lU7Wk'></small><noframes id='lU7Wk'>

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