Micro Focus QTP (UFT) Forums
SAP PORTAL - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: SAP PORTAL (/Thread-SAP-PORTAL)



SAP PORTAL - Rupesh Singh - 06-20-2013

Hi All,

After entering a number in an editText i need to Press Enter button in Key Board.
I tried with below code, its not working:
Code:
1. Browser("mySAPPortal").SAPPortal("Facilities Management").SendKeys ENTER
2. Set Shell = CreateObject("WScript.Shell")
Shell.SendKeys "{ENTER}"
Please Provide Me any alternate way.

Thanks,
Rupesh


RE: SAP PORTAL - basanth27 - 06-21-2013

There are two options,
Type method on the object: {Check if this is available }
Code:
Browser("mySAPPortal").SAPPortal("Facilities Management").Type " "

Or

Device Replay:
Code:
Set ObjDR = CreateObject("Mercury.DeviceReplay")
objDR.PressKey 13 ‘ASCII code for enter

Does it help?


RE: SAP PORTAL - vinod123 - 06-21-2013

I am not familiar with sap testing as it was web portal we can do the same way as web testing process
Code:
Browser("micclass:=Browser").SAPPortal("micclass:='Property value'").Type ""

best method use descriptive programing method


RE: SAP PORTAL - Jyobtech - 06-26-2013

Hi Rupesh,
you can go for another way that like press save button after entering the value in Edit box...
Here save will work as "press enter"
Try this and let me know...


RE: SAP PORTAL - Staff - 07-05-2013

Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.