Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
03-23-2011, 08:39 PM
What about webedit().set "" ? Does that not help? If you are adamant on using keyboard simulation then you may want to read about devicereplay and Sendkeys.
Oh..i almost forgot. Would you try the below code and see if that works?
Code:
Settings.webpackage("Replaytype") = 2
Browser("Lawson portal").Page("Lawson portal").Webedit("webedit").click
Settings.webpackage("Replaytype") = 1
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.
Posts: 6
Threads: 2
Joined: Mar 2011
Reputation:
0
03-24-2011, 12:25 AM
So far, neither of those ideas is working. I get an error trying the replaytype and the .Set "" just sits there. Can I input a pause? As weird as that sounds, I think it's blowing over the input and the cursor needs to be in the input box for it to work. There is not 'submit' button to map to.
Thanks
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
03-24-2011, 11:15 AM
My bad,
Please try this,
Code:
Setting.WebPackage("ReplayType") = 2
Browser("Lawson portal").Page("Lawson portal").Webedit("webedit").click
Setting.WebPackage("ReplayType") = 1
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.
Posts: 40
Threads: 1
Joined: Feb 2011
Reputation:
0
03-24-2011, 07:25 PM
>>>the cursor needs to be in the input box for it to work.
There is a QTP setting for that.Tools->Options->Windows Applications->Advanced->Run Settings->Edit Box->Click edit box before inserting text
Maybe that will help?
Posts: 6
Threads: 2
Joined: Mar 2011
Reputation:
0
03-24-2011, 07:25 PM
Still no joy. I think the only way this will work is using SendKey of the enter key. Can I script that and then call it in a QTP action? if so, how would I do that?
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
03-25-2011, 09:03 AM
But it wasnt windows app..was it?
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.