qtp中type方法的按键常量

  记录键盘操作可以用set和presskey方法,而type方法是不记录的。type方法主要用于输入连接文本字符串和键盘修饰键(组合键),组合键之间用&符号。

如:JavaWindow("Shell").JavaEdit("授权用户").Type "hello" & micreturn

 edit文本框输入内容后按回车键:JavaWindow("Shell").JavaEdit("授权用户").Type micreturn

type方法常用的按键常量有以下:

micRShiftUp 

Releases the right Shift key

micreturn

Press the enter key

micTab

Press the tab key

micWinLogoDwn

Press the windows Logo key

micWinLogoUP

Release the windows Logo key

micLWinLogoDwn

Press the left windows logo key

micLWinLogoUp

Release the left windows logo key    

micRWinLogoDwn

Press the right windows logo key

micRWinLogoUp

Release the right windows logo key    

micF1

Press the F1 key

micCtrlDwn

Press the ctrl key

micCtrlUp

Release the ctrl key

转载于:https://www.cnblogs.com/emilyzhang68/p/3534004.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值