问题描述
在我正在测试的软件中,我需要按键盘上的Enter键以搜索一些数据。
我需要让testRigor按下“输入”键。
该怎么做?
解决方法
我找到了答案,我们只需要这样写:
#val {
width: 300px;
height:25px;
position: absolute;
top: 0;
right: 0;
font-size:13px;
line-height: 25px;
text-indent: 10px;
pointer-events: none;
}
就像文档中所说的那样:
,对于Enter,Tab和Backspace:
enter enter
我不知道您使用的是哪种语言,但是您不能使用Selenium吗?