Micro Focus QTP (UFT) Forums

Full Version: Unable to pass "Enter" Key through Sendkeys
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am unable to Pass "Enter" Key using sendKeys.
Please chk my piece of code below:

Code:
SiebApplication("Siebel Comunicaciones_5").SiebScreen("Ordenes").SiebView("Detalles").SiebApplet("Pedido de ventas").SiebText("Número de Orden").SetText "1-630947340"
Dim mySendKeys
set mySendKeys = CreateObject("WScript.shell")
mySendKeys.SendKeys ("~")

the object I am using is a Siebel object. Hence I am not able to pass 'Click' functionality using this object due to which I guess the object is not getting activated.

Note: I have used the following options too:
mySendKeys.SendKeys {"ENTER"}
mySendKeys.SendKeys ENTER

Please help me to solve this
Got a solution for this:
Code:
SiebApplication("Siebel Comunicaciones_5").SiebScreen("Ordenes").SiebView("Detalles").SiebApplet("Pedido de ventas").SiebText("Número_de_Orden_Edit").ProcessKey "EnterKey"


syntax would be
Code:
SiebApplication(..).SiebScreen(..).................Siebtext(..).ProcessKey "EnterKey"