Below function for mouse and keyboard operations
|
Description
|
Java Method Name
|
Ruby Method Name
|
1
|
|
|
|
2
|
Right Click operation
|
contextClick(elementname)
|
context_click(elementname)
|
3
|
Mouse click operation
|
click(elementname)
|
click(elementname)
|
4
|
Double click
|
double_click(elementname)
|
doubleClick(elementname)
|
5
|
Click and Hold
|
click_and_hold(element)
|
clickAndHold(element)
|
6
|
Release Mouse
|
release(element)
|
release(element)
|
7
|
Perform keyboard operation for [:shift, :alt, :control]
|
key_down(:shift)
key_down(:alt)
key_down(:control)
|
keyDown(Keys.ALT, Keys.SHIFT, or Keys.CONTROL)
|
8
|
Send_keys( click F4 - keyboard input)
|
send_keys(:f4)
|
sendKeys(Keys.f4)
|
9
|
Move the mouse on element
|
move_to(element)
|
moveToElement(toElement)
|
No comments:
Post a Comment