Geeks Talk

Prepare for your Next Interview




criteria in QTP for identifying WinObject and WebElement

This is a discussion on criteria in QTP for identifying WinObject and WebElement within the QTP forums, part of the Software Testing category; Hi People,I wanna know what criteria is set in QTP for identifying WinObject and WebElement. I am facing a scenario where at times it is taking the object as ...


Go Back   Geeks Talk > Software Testing > QTP

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 01-04-2007
Expert Member
 
Join Date: Oct 2006
Posts: 690
Thanks: 0
Thanked 49 Times in 41 Posts
JobHelper is on a distinguished road
criteria in QTP for identifying WinObject and WebElement

Hi People,I wanna know what criteria is set in QTP for identifying WinObject and WebElement. I am facing a scenario where at times it is taking the object as a WebElement and at other point as an WinObject. Help Appreciated

NOTE : [This question was asked by Nawab Shaikh]
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-08-2007
Junior Member
 
Join Date: Sep 2006
Location: hyderabad
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thamgoutham is on a distinguished road
Re: criteria in QTP for identifying WinObject and WebElement

hi
in QTP every object is recognized by its properties.if the objects are in the windows environment they will be winobject,winedit,etc i.e. the logical name will start with "win" and in web applications it will be "web".
as in the question qtp is identifying the same object at some times as winobject and at some other times as webelement.this may be due to the following reason:
-->if the qtp is opened first and then the (AUT) test application - the qtp recognises or identifies any webelement as webelement if vice-versa has happened then the webelement is identified as winobject.
--> so always we have to open the qtp first then the application.
please correct if i am wrong
Reply With Quote
  #3 (permalink)  
Old 02-19-2008
Moderator
 
Join Date: Sep 2006
Location: Delhi (India)
Posts: 864
Thanks: 12
Thanked 81 Times in 65 Posts
jainbrijesh is on a distinguished road
Re: criteria in QTP for identifying WinObject and WebElement

Quote:
Originally Posted by JobHelper View Post
Hi People,I wanna know what criteria is set in QTP for identifying WinObject and WebElement. I am facing a scenario where at times it is taking the object as a WebElement and at other point as an WinObject. Help Appreciated

NOTE : [This question was asked by Nawab Shaikh]
It's better if you are working on window application, then uncheck the web add-in. I am sure you will not phase this problem again.
__________________
Brijesh Jain
brijesh.tester@yahoo.co.in
http://softwaretestingexpertise.blogspot.com
Reply With Quote
  #4 (permalink)  
Old 02-20-2008
Banned
 
Join Date: Oct 2007
Location: Hyderabad
Posts: 176
Thanks: 2
Thanked 11 Times in 11 Posts
quality_quantity is on a distinguished road
Re: criteria in QTP for identifying WinObject and WebElement

Unfortunatly you can't do much when the object is recognized as WinObject. It's something equivalent to not able to recognize the object as one of the standard controls
Reply With Quote
  #5 (permalink)  
Old 07-02-2008
Junior Member
 
Join Date: Jul 2007
Location: CA
Posts: 16
Thanks: 2
Thanked 5 Times in 4 Posts
Fahed9090 is on a distinguished road
Re: criteria in QTP for identifying WinObject and WebElement

Hi All,
Object identification properties can be used in the object repository description, in programmatic descriptions, in checkpoint and output value steps, and as argument values for the GetTOProperty and GetROProperty methods. If the object is not found in the object repository, the TestObjName is defined as follows:

Window("IBM").Window("Window"). WinObject ("Edit").SetSelection 0,2
Window("IBM").Window("Window"). WinObject ("Edit").WaitProperty"Focused",True,5000
If Window("IBM ").Window("Window"). WinObject ("Edit").Exist then
Window("IBM ").Window("Window"). WinObject ("Edit").Click"

If the object is found in the application, QuickTest uses the value of the property it normally uses when adding this object to the object repository, surrounded by [ ].
If the object is not found in the application, QuickTest uses the value of the object's Class Name property, surrounded by [ ].

Hope it helps!
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
difference between entrance and sign on criteria milu_mohanty Testing Issues 3 11-07-2006 07:46 AM
entry criteria yagnkan Testing Issues 3 11-02-2006 08:13 AM


All times are GMT -4. The time now is 11:58 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved