Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SAP PORTAL
#1
Solved: 10 Years, 3 Months, 3 Weeks ago
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
Reply
#2
Solved: 10 Years, 3 Months, 3 Weeks ago
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?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Solved: 10 Years, 3 Months, 3 Weeks ago
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
Reply
#4
Solved: 10 Years, 3 Months, 3 Weeks ago
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...
Reply
#5
Solved: 10 Years, 3 Months, 3 Weeks ago
Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  In qtp how to manage status bar for portal(SAP WEB Application) kamal262007 0 2,653 03-08-2013, 12:58 PM
Last Post: kamal262007
  SAP QTP issue-SAP screen disappear Jyobtech 2 3,363 02-27-2013, 10:01 AM
Last Post: Jyobtech

Forum Jump:


Users browsing this thread: 1 Guest(s)