Selenese命令有哪些

小编给大家分享一下Selenese命令有哪些,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

简介

    Selenium为用户提供了大量的Selenese命令,可以非常方便的为用户编写脚本实用,其中实际场景运用需要的并不多,为了能更好的利用这些命令,我对几乎所有Selenese命令做了分类,分类内容如下:

  1. 包含操作页面元素常用命令,以及一些不常用到的高级使用命令

  2. 对鼠标键盘事件控制命令

  3. wait相关命令

  4. veriy相关命令

  5. assert相关命令

  6. store存储器相关命令

Part II 鼠标键盘事件控制命令汇总:

setCursorPosition shiftKeyDown
setCursorPositionAndWait shiftKeyDownAndWait
setMouseSpeed shiftKeyUp
setMouseSpeedAndWait shiftKeyUpAndWait
dragAndDrop altKeyDown
dragAndDropAndWait altKeyDownAndWait
dragAndDropToObject altKeyUp
dragAndDropToObjectAndWait altKeyUpAndWait
dragdrop controlKeyDown
dragdropAndWait controlKeyDownAndWait
mouseDown controlKeyUp
mouseDownAndWait controlKeyUpAndWait
mouseDownAt keyDown
mouseDownAtAndWait keyDownAndWait
mouseDownRight keyPress
mouseDownRightAndWait keyPressAndWait
mouseDownRightAt keyUp
mouseDownRightAtAndWait keyUpAndWait
mouseMove metaKeyDown
mouseMoveAndWait metaKeyDownAndWait
mouseMoveAt metaKeyUp
mouseMoveAtAndWait metaKeyUpAndWait
mouseOut
mouseOutAndWait
mouseOver
mouseOverAndWait
mouseUp
mouseUpAndWait
mouseUpAt
mouseUpAtAndWait
mouseUpRight
mouseUpRightAndWait
mouseUpRightAt
mouseUpRightAtAndWait

以上是“Selenese命令有哪些”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!