Click - web automation method

Web automation method that simulates a click on a HTML web control.

Applies to:
Element
  elementObj.Click();
Arguments:
None.
Remarks:
This web automation method simulates a click on any HTML element using hardware or Internet Explorer events, depending on useHardwareInputEvents property. All necessary HTML events are fired up to simulate user's behavior (onmouseover, onmousemove, onmousedown, onbeforeactivate, onactivate, onfocusin, onfocus, onmouseup, onclick).
Example:
var coreObj = new ActiveXObject("OpenTwebst.Core");
var browser = coreObj.StartBrowser("http://www.codecentrix.com/");

var element = browser.FindElement("a", "text=Download");
element.Click();
		
See also:
Element | InputText | RightClick | Select | useHardwareInputEvents

© 2017 CodeCentrix Software. All rights reserved.