无法弄清楚如何按回车键

Cannot figure out how to press enter

我需要在输入栏中输入页码,然后点击回车,进行搜索。我试过用EVENT模式录音,但按任意键都不录音

这是我输入页码的代码

EVENT TYPE=CLICK SELECTOR="#searchResults>DIV>DIV>DIV>DIV:nth-of-type(2)>DIV:nth-of-type(2)" BUTTON=0
EVENT TYPE=KEYPRESS SELECTOR="#searchResults>DIV>DIV>DIV>DIV:nth-of-type(2)>INPUT" CHAR="9"
EVENT TYPE=KEYPRESS SELECTOR="#searchResults>DIV>DIV>DIV>DIV:nth-of-type(2)>INPUT" KEY=13

代码没有return任何错误,但未按下回车键 我也试过这样:

EVENT TYPE=KEYPRESS SELECTOR="div[class='page']" KEY=13

HTML的结构:

试试这些命令:

EVENT TYPE=KEYDOWN SELECTOR="#searchResults>DIV>DIV>DIV>DIV:nth-of-type(2)>INPUT" KEY=13

EVENT TYPE=KEYUP SELECTOR="#searchResults>DIV>DIV>DIV>DIV:nth-of-type(2)>INPUT" KEY=13