DMBrowser.PressKey Method

Definition

Sends the key press message to a browser.

public virtual void PressKey(Dotcom.Browser.Core.Messaging.KEYS key)

Parameters

 key  Keys

Enum Keys from System.Windows.Forms (https://goo.gl/bNdwR7) are used.

Examples

tab0.TextField (“//INPUT[@ID=”yschsp”]”, “//DIV[@ID=”sbq-wrap”]//INPUT[@TYPE=”text”]”, “//LI[normalize-space()=”pop-up test”]/../../../../..//INPUT”).TypeText (“popup test”);
tab0.PressKey (Keys.Return);