DMBrowser.PressKey Method

Definition

Sends the key press message to a browser.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
public virtual void PressKey(Dotcom.Browser.Core.Messaging.KEYS key)
public virtual void PressKey(Dotcom.Browser.Core.Messaging.KEYS key)
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

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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);
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);
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);