CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛
CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛
CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛

WinAppDriver DatePicker中的checkbox选中问题C#

今天在用WinAppDriver进行UI自动化开发测试时,发现DatePicker中的Checkbox并不支持点击选择.网上百度谷歌都没有找到答案.

WinAppDriver DatePicker中的checkbox选中问题 空格键

折腾大半天,后面才找到解决的思路,那就是发送空格键选其选中.具体就是先将DatetimePicker焦点,然后发送空格键.

大致代码如下:DatePicker.Click();DatePicker.SendKeys(Keys.Space);

EnglishInfo:

Today, when using winappdriver for UI automation development test, I found that the checkbox in datepicker does not support click selection Online Baidu and Google have not found the answer
Toss about for a long time, only to find a solution later, that is to send the space bar to select it Specifically, first focus the datetimepicker and then send the spacebar
The approximate code is as follows: DatePicker.Click(); DatePicker.SendKeys(Keys.Space);

以上就是【WinAppDriver DatePicker中的checkbox选中问题C#】的全部内容了,欢迎留言评论进行交流!

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
相关推荐
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容