Micro Focus QTP (UFT) Forums
Webelement Values - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Webelement Values (/Thread-Webelement-Values)



Webelement Values - profqa - 01-03-2015

I am trying to capture some web element values of a web page. I used Object Spy to get the property of object. I’m trying to use descriptive programming. But the object property is same in all the object except abs_X and abs_y. it worked fine on my work station. When I’m running this script on another work station, where monitor size is different it failed. Please suggest.

My code :
Code:
strESGetRo = Browser("xyz").Page("abc").WebElement("html tag:=DD", "abs_x:=437","abs_y:=334").GetROProperty("innertext")
print "strESGetRo... " & strESGetRo

strEntryTypeGetRo = Browser("xyz").Page("abc").WebElement("html tag:=DD", "abs_x:=437","abs_y:=354").GetROProperty("innertext")
Print "Entry Type " & strEntryTypeGetRo
strEntryPortGetRo  = Browser("xyz").Page("abc").WebElement("html tag:=DD", "abs_x:=437","abs_y:=374").GetROProperty("innertext")
Print "Entry Port " & strEntryPortGetRo



RE: Webelement Values - supputuri - 01-05-2015

HI there,

Please use the childObjects concept so that you can loop through all webelement with html tagBig GrinD

please let me know if you need any help on this.