01-03-2015, 10:30 AM
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 :
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