开发者

Selenium IDE down arrow key

开发者 https://www.devze.com 2023-01-31 14:05 出处:网络
I\'m stuck trying to get my selenium testing to simulate a down arrow key press. Im just using the html format开发者_JAVA百科 for my tests and am using typeKeys as the command, the target is correct

I'm stuck trying to get my selenium testing to simulate a down arrow key press.

Im just using the html format开发者_JAVA百科 for my tests and am using typeKeys as the command, the target is correctly found, and for the value I am putting in \40 which seems to be converted into \\40 in the UI. When I run the command it ends up appending \40 to the current value of the input.

I'm using the latest version of the selenium ide from the site.

Any pointers?

Cheers


Selenium provides its own methods for this task.

Try using keyDown() instead of typeKeys()

0

精彩评论

暂无评论...
验证码 换一张
取 消