Содержание

MoveToElement

Scrolls the page to the specified element, emulates mouse cursor movement to specified coordinates relative to the element

Syntax

function MoveToElement(aElement: TCSElement; aPointCount: integer = 0;
  aInterval: integer = 0; aX: integer = 0; aY: integer = 0;
  aScrollMethod: TCSScrollMethod = SM_WHEEL): boolean;

Parameters

Returned value

Notes

Examples

  1. LoadURI('google.ru');
    TypeIn('test');
    var Search:=GetElement('button',0,['name'],['btnG']);
    MoveToElement(Search,0,0,0,0,SM_SCROLLBAR);