Micro Focus QTP (UFT) Forums
Identification of objects in GWT - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Identification of objects in GWT (/Thread-Identification-of-objects-in-GWT)



Identification of objects in GWT - sachinjadhav_123 - 04-03-2009

Hi,

I am facing one problem with identifying the objects in my application. I am doing this by Data Driven Framework.

Issue - We are using GWT (Google Web Toolkit) in our application. On search page we have few text boxes and few combo boxes. QTP identifies all the objects on the page as WebElement.
There are only few properties which QTP identifies and those are dynamic (the property name keeps on changing).

Text Box - In this case fortunately there was name field called "ext-gen401-firstName" the number 401 keeps on changing to some other number (485, 782) which makes this name property as Dynamic. So I used regular experession to identify the object, program executed successfully

Combo Box - In this case, there wasn't any name field and had only "html id:=ext-gen1167" which I could use in the script. As the property keeps on changing the number, there wasn't any unique property which I could use and work with. In the properties section x,y location fields is the last option I am left with which is not good practice to include in Scripts.

Here with I am attaching the properties I could see for the combo box.

Properties of Combo Box

Class Name = WebElement
abs_x =323
abs_y =518
class = x-form-taglist-tags
height = 21
html id = ext-gen409
html tag = TD
outerhtml = <TD class=x-form-taglist-tags id=ext-gen409 style="WIDTH: 365px"></TD>
visible = True
width = 365
x = 321
y = 271


Thanks