Search This Blog

Wednesday, August 4, 2010

Selenium Commands - Part 2

M

metaKeyDown()
Press the meta key and hold it down until doMetaUp() is called or a new page is loaded.


metaKeyDownAndWait()
Generated from metaKeyDown()
Press the meta key and hold it down until doMetaUp() is called or a new page is loaded.


metaKeyUp()
Release the meta key.


metaKeyUpAndWait()
Generated from metaKeyUp()
Release the meta key.


mouseDown(locator)
Arguments:
• locator - an element locator
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseDownAndWait(locator)
Generated from mouseDown(locator)
Arguments:
• locator - an element locator
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseDownAt(locator, coordString)
Arguments:
• locator - an element locator
• coordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseDownAtAndWait(locator, coordString)
Generated from mouseDownAt(locator, coordString)
Arguments:
• locator - an element locator
• coordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseMove(locator)
Arguments:
• locator - an element locator
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseMoveAndWait(locator)
Generated from mouseMove(locator)
Arguments:
• locator - an element locator
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseMoveAt(locator, coordString)
Arguments:
• locator - an element locator
• coordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseMoveAtAndWait(locator, coordString)
Generated from mouseMoveAt(locator, coordString)
Arguments:
• locator - an element locator
• coordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseOut(locator)
Arguments:
• locator - an element locator
Simulates a user moving the mouse pointer away from the specified element.


mouseOutAndWait(locator)
Generated from mouseOut(locator)
Arguments:
• locator - an element locator
Simulates a user moving the mouse pointer away from the specified element.


mouseOver(locator)
Arguments:
• locator - an element locator
Simulates a user hovering a mouse over the specified element.


mouseOverAndWait(locator)
Generated from mouseOver(locator)
Arguments:
• locator - an element locator
Simulates a user hovering a mouse over the specified element.


mouseUp(locator)
Arguments:
• locator - an element locator
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseUpAndWait(locator)
Generated from mouseUp(locator)
Arguments:
• locator - an element locator
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseUpAt(locator, coordString)
Arguments:
• locator - an element locator
• coordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.


mouseUpAtAndWait(locator, coordString)
Generated from mouseUpAt(locator, coordString)
Arguments:
• locator - an element locator
• coordString - specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
Simulates a user pressing the mouse button (without releasing it yet) on the specified element.