web » scrollRight(locator,pixel)
Description
PLEASE NOTE THAT THIS COMMAND HAS BEEN REMOVED SINCE THE UNDERLYING JAVASCRIPT CAN NO LONGER STABLY PERFORM
THE INTENDED OPERATIONS ON ALL BROWSERS.
This command might be reinstated in the future, if we can find a suitable solution.
This command might be reinstated in the future, if we can find a suitable solution.
One should treat
scrollElement(locator,xOffset,yOffset)
as the supersede ofscrollLeft(locator,pixel)
andscrollRight(locator,pixel)
.
- This command scroll right on the first matched element of the specified
locator
. The amount of scroll is controlled by the specifiedpixel
. If the specified locator does not resolved to a valid element, this command will consider as FAIL. - Note that this command only make sense for elements that contains other elements and has a horizontal scrollbar.
For example, this command would like to have no effect on a button or a checkbox.
Parameters
- locator - this parameter is the locator of the element.
- pixel - the amount of scroll to apply.