web » scrollLeft(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 successor ofscrollLeft(locator,pixel)
andscrollRight(locator,pixel)
.
- This command is to scroll left of the scroll element.
- In other words the command will scroll left to the defined pixel if element found and will pass the command or else fail otherwise.
Parameters
- locator - this parameter is the locator of the element.
- pixel - this parameter is the dimension in pixel to the left of the element identified to be scrolled.
Example
Script:
Output: