Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Not Identifying a window at times.
#1
Not Solved
Hi,
My problem is, in my application i have a file download window.I have to get the "text" property from that file download window.
I wrote scripts for that and now the issue is it will recognize that window at times and for certain times it is not.
Can anyone help me in solving this issue...
The script is given below

Code:
Do
var_exist=Browser("Browser.").Dialog("File Download_2").Exist
nme=Browser("Browser.").Dialog("File Download_2").WinObject("Name:").GetROProperty ("text")
Loop until var_exist="True"


Since it takes sometime to display the 'File download' window i gave it in a Do Loop.
Reply
#2
Not Solved
Using WinObject is always a problem.. A

Why are using WinObject, QTP shows this when it does knownn what the property is.

I think you are mis leaded.
Reply
#3
Not Solved
But when I spy that particular object it is showing its property as WinObject.
Can i know what is the issue if we use WinObject?

Thanks & Regards,
Sherin.
Reply
#4
Not Solved
WinObject means QTP not able to identify the object. So we can do any QTP related things on that.

My suggestioon on this is...

while execution whenever you have an Attacment it will ask for Whether to Open or Save..

Now Dont Open it , Save it directly.

Try to record like this.. You will be in good shape
Reply
#5
Not Solved
But my problem is QTP is not identifying the Window itself .

Code:
' var_exist=Browser("Browser.").Dialog("File Download_2").Exist '
.For this statement
sometimes the value returned will be FALSE even though the window is present.

For me the line
Code:
'nme=Browser("Browser.").Dialog("File Download_2").WinObject("Name:").GetROProperty ("text")'
is executing fine if it identifies the Window.

Can i know what has to be done if QTP recognizes an object as WinObject?Should i create virtual objects for all the Objects which is being identified as WinObjects by QTP?

Thanks & Regards,
Sherin.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Objects identifying as WinObjects on IE with QTP/UFT santhosh kumar 5 5,530 05-07-2016, 12:39 PM
Last Post: vinod123
  QTP 10 not identifying objects in IE8 on 64 bit OS Ram2009 6 4,711 03-24-2015, 05:46 PM
Last Post: vinod123
  Is it possible to call Java window and Power Builder Window in 1 Action sbkhbk 0 2,541 06-05-2014, 08:18 PM
Last Post: sbkhbk
  QTP 11 - Chrome 24. Dialog box is identifying as Win object. Kannan R 0 3,096 08-13-2013, 08:10 PM
Last Post: Kannan R
  Does CSS in QTP can help identifying objects only ??? keeper_13 5 5,505 06-07-2013, 02:19 AM
Last Post: keeper_13

Forum Jump:


Users browsing this thread: 1 Guest(s)