• HOME
  • Making test automation program for jQuery Rich UI with selenium
Created time: 2014-02-24 Last updated time:

Making test automation program for jQuery Rich UI with selenium

I'm now making test program using selenium. The selenium is useful testing library. I am using the Java version.

The Action package has a lot of action to handle the mouse move.

For example,

  • click()
  • clickAndHold()
  • doubleClick()
  • dragAndDrop()
  • dragAndDropBy()
  • keyDown()
  • keyUp()
  • sendKeys()
  • moveByOffset()
  • pause()
  • release()

These are very useful, but in order to test Rich UI, we have to use primitive action instead of the high level action, these are doubleClick(), dragAndDrop(), dragAndDropBy() and so on.

It is because the test program using selenium works so fast, that we have to take screen shots. Then the process of the drag and drop should be taken by it, sometimes.

For example, testing the jqtree example, we have to check the move of the tree element into the element, or next to the element or before the element.

jqTree

In order to take the screen shot, we have to combine the clickAndHold(), "moveToElement(toElement, xOffset, yOffset)", and release(). Then take the screen shot before executing the release().


Go to Top