PressKey Method

UFT One 2022 and later: Following the discontinuance of the Silverlight development framework, UFT One no longer supports the Silverlight Add-in out of the box.

If you need to use and extend the Silverlight Add-in, contact OpenText Support.

Simulates pressing a key.

Remarks

Use virtual keys, not characters. The Custom Server is responsible for placing the cursor at the desired location in the control before invoking this method.

Syntax

Visual Basic (Declaration) 
Overridable Sub PressKey( _
   ByVal ScanCode As Byte _
) 
C# 
virtual void PressKey( 
   byte ScanCode
)

Parameters

ScanCode
Key's scan code.

See Also