Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manually adding to Obj. Rep?
#1
Solved: 11 Years, 4 Months, 4 Weeks ago
Hi guys,

I have a problem where I have a macro that copies a text and I want to send that information to my Test in QTP and I figured I could do it with "ctr+v" into an InputBox created in my test.

I have been playing around with it and QTP complains that it cannot find the InputBox in Obj. Rep.

So my question is, how can I add a dialog box to ObjRep. manually since the dialog box created by the test is modal, it does not allow me to access Obj. Rep. window to identify it and add it.

Btw. is there a book for learning about this kind of stuff? Because right now the things that I learn are the things I stumble upon and post here or search on google.

Thanks and kind regards,
Mukesh L.
Reply
#2
Solved: 11 Years, 4 Months, 4 Weeks ago
If the InputBox is triggered from your qtp script like MsgBox then it is not possible to add that box to OR.
Reply
#3
Solved: 11 Years, 4 Months, 4 Weeks ago
This wouldn't work anyway because the InputBox function pauses the script. So there is no way to execute the next line of the script until the InputBox is closed. If you want to get what is in the system's clipboard, use this:

Code:
Set cb = CreateObject("Mercury.Clipboard")
MsgBox cb.GetText
Reply
#4
Solved: 11 Years, 4 Months, 4 Weeks ago
Thanks Manish and Cdesserich,

the code above worked like a charm thanks again.

Regards,
Mukesh
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,699 05-30-2017, 12:17 AM
Last Post: Vichu M J
  Adding negative amount in webedit Rose 1 2,195 06-30-2016, 09:34 PM
Last Post: babu123
  Adding data into rows that add dynamically with setcelldata azar81 4 5,968 04-13-2015, 05:24 PM
Last Post: vidya2k2
  How to add all objects manually in object repository rajaselvan.d 2 12,727 10-10-2014, 05:08 PM
Last Post: nivedita
  adding webtable to dictonaryobject prabu211989 2 2,641 01-06-2014, 07:56 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)