public Actions moveToElement ( WebElement target ) { if ( isBuildingActions ( ) ) { action . addAction ( new MoveMouseAction ( jsonMouse , ( Locatable ) target ) ) ; } return moveInTicks ( target , 0 , 0 ) ; }
Moves the mouse to the middle of the element . The element is scrolled into view and its location is calculated using getBoundingClientRect .